Follow the Definitive Guide of Git Chapter 2 , to learn git.