published under license Attribution-ShareAlike 4.0 International (CC BY-SA 4.0)copy! share!
posted in category Systems Software / Git
posted at 26. Sep '18
last updated at 12. May '21
HOWTO Merge FUBARed (Conflicts) Branch
- create branch1 from master
- create branch2 from master
- create branch11 from branch1
- merge branch2 to master
- rebase + merge branch1 to master
- branch11 is now FUBARed
- merge master into branch11: on branch11:
git merge master
- fix conflicts
- on branch11:
git diff master > ~/branch11.diff
- on branch11:
git reset --hard master
- on branch11:
git apply ~/branch11.diff
- on branch11:
git commit -am 'branch11 stuff'
- create PR and you will be able to merge it now
Add Comment