Skip to content

Instantly share code, notes, and snippets.

@andru255
Created September 17, 2021 14:13
Show Gist options
  • Save andru255/87883eb800bf772fe940b9249600f75b to your computer and use it in GitHub Desktop.
Save andru255/87883eb800bf772fe940b9249600f75b to your computer and use it in GitHub Desktop.
Reset a file from a hash
~ git checkout <commit hash> file
// source: https://stackoverflow.com/questions/215718/how-can-i-reset-or-revert-a-file-to-a-specific-revision
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment