Skip to content

Instantly share code, notes, and snippets.

@cleberjamaral
Last active February 25, 2020 03:21
Show Gist options
  • Save cleberjamaral/1548e52acb122a81874fec0f1dfafa36 to your computer and use it in GitHub Desktop.
Save cleberjamaral/1548e52acb122a81874fec0f1dfafa36 to your computer and use it in GitHub Desktop.
Git-undo-local-changes

Git undoing local changes

  • Undoing git add / Unstaging changes git reset

  • Undoing a git reset git reset 'HEAD@{1}'

  • Undoing a git commit git reset HEAD^

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