Created
December 15, 2016 22:10
-
-
Save tyrelsouza/cc944c057f5110f42373f8909257ed20 to your computer and use it in GitHub Desktop.
Undo a commit FORCEFULLY.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
git tag temp$RANDOM | |
git reset --hard HEAD^ | |
git push --force | |
echo "There. I fixed your stupid mistake Tyrel" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment