Git and Version Control
Learn Git from the very beginning: keep the history of your work, undo mistakes without fear, and collaborate with other people on GitHub. Every command in the series is typed on your own computer, and every output shown was produced by real Git.
How to study
Each module takes two to three hours. Read a section, then type the commands of its session in your own terminal and compare what you see with the output on the page. Module 1 shows you how to install Git and set it up.
The output on these pages was produced by the Git version named in each caption, with example names, dates and folders. Your names, dates, commit hashes and folders will differ, and other versions of Git word some messages a little differently; what the messages mean stays the same.
Every module ends with exercises with worked solutions and a short self-check quiz. Your progress is saved in this browser and shared by the English and Chinese editions.
The modules
Acknowledgements
This series was written for this site. For more depth it recommends, without copying from them, the free book Pro Git by Scott Chacon and Ben Straub, the official Git reference, GitHub Docs and, for extra practice with branches, Learn Git Branching.