Skip to content

Instantly share code, notes, and snippets.

@byronmejia
Last active October 8, 2018 07:10
Show Gist options
  • Save byronmejia/80be7ae8da5cbb6cf9e512ee44e39094 to your computer and use it in GitHub Desktop.
Save byronmejia/80be7ae8da5cbb6cf9e512ee44e39094 to your computer and use it in GitHub Desktop.
Undo Last Commit
# Reset Head back one commit
git reset HEAD~
# Make Changes as required, then:
git commit -m "A Helpful Commit Message"
# Forceful Push (required if a remote branch has diverged)
git push -f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment