Search code examples
gitsmart-commits

How to open files in from previous commit in git?


If I wanted to edit a file from a historic commit in git... how do I access the way the file was from a particular commit?


Solution

  • git checkout commit_hash -- full/path/of/file