Skip to content

Instantly share code, notes, and snippets.

@BCEvanFang
Created January 11, 2019 03:55
Show Gist options
  • Select an option

  • Save BCEvanFang/0676f6a2825122c7f2c898dbe2420e01 to your computer and use it in GitHub Desktop.

Select an option

Save BCEvanFang/0676f6a2825122c7f2c898dbe2420e01 to your computer and use it in GitHub Desktop.
git reset
# Undo last commit and KEEP all changes
git reset --soft HEAD~1
# Undo last commit and REMOVE all changes
git reset --hard HEAD~1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment