Created
June 4, 2015 18:25
-
-
Save rgbink/e08e969bc1e4045444c7 to your computer and use it in GitHub Desktop.
Completely Overwrite chosen git 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
git checkout desired_branch // put in the name of the branch you wish to KEEP | |
git merge -s ours branch_to_be_replaced // put in the name of the branch you want to OVERWRITE | |
git checkout branch_to_be_replaced // put in the name of the branch you want to OVERWRITE | |
git merge desired_branch // put in the name of the branch you wish to KEEP |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment