Advertising

Try this as well:
git reset Z^ -- foo.txt
You should see that your index is updated as it was when you did
commit Z, except foo.txt. The changes that you did to foo.txt then is
now present in the working tree. If you want to completely revert
changes to foo.txt, I think all you need is to do a git commit at this
stage.
HTH
--
Jeenu
--
You received this message because you are subscribed to the Google Groups "Git
for human beings" group.
To post to this group, send email to git-users@googlegroups.com.
To unsubscribe from this group, send email to
git-users+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/git-users?hl=en.