Skip to content

Instantly share code, notes, and snippets.

@tangar76
Created December 11, 2017 14:50
Show Gist options
  • Save tangar76/18d7d36e4bca8cc05e4fcdf95e59b405 to your computer and use it in GitHub Desktop.
Save tangar76/18d7d36e4bca8cc05e4fcdf95e59b405 to your computer and use it in GitHub Desktop.
git reset --soft HEAD^ # use --soft if you want to keep your changes
git reset --hard HEAD^ # use --hard if you don't care about keeping the changes you made
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment