Learn Git “Branching” and “Reverting”

“Reverting a file can be a little confusing in git because git uses a different model than, say, SubVersion. You are in a catch-22 because to learn the model you need to know the terminology. To learn the terminology you need to know the model. I think the best explanations I’ve read so far have been in the book Pro Git, written by Scott Chacon and published by Apress. Scott put the entire book up online, and for that he deserves a medal. You can also buy a dead-tree version…”

http://everythingsysadmin.com/2013/02/reverting-in-git.html

http://pcottle.github.com/learnGitBranching/