I have a templates directory with around 10 *.html files.
I made changes to most of them.
Now i want to revert changes only in the index.html file.
How can i do that:
if i have committed my latest changes?
if i have not committed my latest changes?
(i dont want to git reset --HARD which will undo all the changes)
Try
for when you haven’t committed yet.
If you have committed you need to
git reset [--mixed]the last commit, do thegit checkoutandgit commitagain.