Created
May 16, 2019 12:10
-
-
Save wholypantalones/d7fe244c7d58d9330552c4ac92342c9d to your computer and use it in GitHub Desktop.
Undo git commit and push to origin master
This file contains 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 | |
#### https://git-scm.com/docs/git-reset | |
git reset @~ | |
git push -f origin <hash>:<branch> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment