1 | initial version |
cd
commandgit log
command to view the history of commits and their respective SHA-1 hash valuesgit checkout
command followed by the SHA-1 hash value to move to that commitgit checkout master
command to return to the latest commit on the master branchgit checkout HEAD~<number>
command, where <number>
is the number of commits you want to move backgit branch
command followed by a name for the new branch to work on that specific commit.