Skip to content

Instantly share code, notes, and snippets.

@vinaysshenoy
Last active August 29, 2015 14:16
Show Gist options
  • Save vinaysshenoy/7d6ed97010c9ee48add6 to your computer and use it in GitHub Desktop.
Save vinaysshenoy/7d6ed97010c9ee48add6 to your computer and use it in GitHub Desktop.
Checkout file from older commit
git checkout sha1 -- path/to/file.txt
git checkout 'master@{7 days ago}' -- path/to/file.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment