Skip to content

Instantly share code, notes, and snippets.

@zmf
Created June 7, 2017 15:08
Show Gist options
  • Save zmf/99ae19e250bed69baa46045c9d4eb4a3 to your computer and use it in GitHub Desktop.
Save zmf/99ae19e250bed69baa46045c9d4eb4a3 to your computer and use it in GitHub Desktop.
Restore specific file(s) from specific git commit
git checkout c5f567 -- file1/to/restore file2/to/restore
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment