Skip to content

Instantly share code, notes, and snippets.

@Chrispassold

Chrispassold/git commands

Last active Oct 26, 2018
Embed
What would you like to do?
https://stackoverflow.com/a/42903805
Delete the most recent commit, keeping the work you've done:
git reset --soft HEAD~1
Delete the most recent commit, destroying the work you've done:
git reset --hard HEAD~1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.