Skip to content

Instantly share code, notes, and snippets.

@johngorithm
Created July 31, 2019 12:55
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 johngorithm/74178eb7ad6f99fe17e000665d96f8a1 to your computer and use it in GitHub Desktop.
Save johngorithm/74178eb7ad6f99fe17e000665d96f8a1 to your computer and use it in GitHub Desktop.

To undo a commit and return the changes back to staging. Use the command blow

git reset --soft HEAD^

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