How to see an older version of a file?
- show
$ git show HEAD:FILE
$ git show HEAD~2:FILE
$ git show 8931:FILE (The SHA of the relevant commit)
short SHA1 (at least 4 but usually not more than 7)
Press ← or → to navigate between chapters
Press S or / to search in the book
Press ? to show this help
Press Esc to hide this help
$ git show HEAD:FILE
$ git show HEAD~2:FILE
$ git show 8931:FILE (The SHA of the relevant commit)
short SHA1 (at least 4 but usually not more than 7)