New to git? Gary Rennie is the developer of githug:
Githug is designed to give you a practical way of learning git. It has a series of levels, each utilizing git commands to ensure a correct answer.
And if you are so inclined, you can also write you own game levels through the embedded DSL.