HOWTO: retrieve a single file from a specific version in git

less than 1 minute read

git show will help you. Few examples below:

$ git show file.py  
$ git show HEAD^^^:file.py  
$ git show 948a17:file.py

Comments