Skip to content

Instantly share code, notes, and snippets.

@jhkueh
Created March 22, 2021 09:54
Show Gist options
  • Save jhkueh/4f921a2076b97c89745b54903f4acf2a to your computer and use it in GitHub Desktop.
Save jhkueh/4f921a2076b97c89745b54903f4acf2a to your computer and use it in GitHub Desktop.
Useful Git commands

How to Revert a Single File

git checkout [commit ID] -- path/to/file

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment