Skip to content

Instantly share code, notes, and snippets.

@tpiekarski
Created May 20, 2020 07:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tpiekarski/eb1df619cb9ebd5d27a8fe167980029d to your computer and use it in GitHub Desktop.
Save tpiekarski/eb1df619cb9ebd5d27a8fe167980029d to your computer and use it in GitHub Desktop.
Resetting files to HEAD
# Resetting a single file from current branch [or from another branch]
git checkout [--] <filename>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment