May 2017
Beginner
552 pages
28h 47m
English
The first git checkout command retrieves the snapshot for the starting branch. The second git checkout command marks your current working code as also being a new branch.
The git commit command (or commands) move the snapshot pointer for the new branch further and further away from the original branch. The third git checkout command restores your code to the initial state before you made your edits and commits.
The git merge command moves the snapshot pointer for the initial branch to the snapshot of the branch you are merging.