Theodore Tso wrote: > > I use this command enough that I have this defined as an alias in my > ~/.gitconfig file. Try running this command: > > git config --global alias.revert-file "checkout HEAD --" > > Now you will be able to do this: > > git revert-file d.txt > > This is also useful when I've edited d.txt, and decided that I didn't > go about it the right away, and so I want to revert my edits. > Very good, I'll try that. (Plus it shows me how to customize git, thanks!) (Sorry for my late answer I've been unable to check my computer for a few hours) -- View this message in context: http://n2.nabble.com/%28beginner%29-git-rm-tp2231416p2233899.html Sent from the git mailing list archive at Nabble.com. -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html