Created
February 28, 2017 21:05
-
-
Save richy486/81ca3abe02912c5b71d25363f92ed8e5 to your computer and use it in GitHub Desktop.
how to undo a github merge to the wrong branch
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
if you merged 'someUpdate' branch into 'wrongBranch' branch | |
do this on 'wrongBranch' | |
$ git reset --soft HEAD^ | |
$ git push -f origin HEAD^:wrongBranch | |
$ git push |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment