Skip to main content

How can I restore a particular version of a file from a Git repository?

16 Aug 2013 - git

The following command will replace the current version with the older version. If you just want to see the older version of the file, use git show.

git checkout SHA1 path/to/file

References