Created
July 8, 2017 21:45
-
-
Save ranieribt/685ffe02a77de92c1037df33e95945c2 to your computer and use it in GitHub Desktop.
Make the current git branch a master 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 better_branch | |
| git merge --strategy=ours master # keep the content of this branch, but record a merge | |
| git checkout master | |
| git merge better_branch # fast-forward master up to the merge |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
based on https://stackoverflow.com/a/2763118/938261