Overwrite git branch while keeping history -
our team has been developing 2 versions of project side side.
the commits in master branch bugfixes old code, while v2setup branch contains complete rewrite.
had bugfixes not occured squash new branch master, if i'm not mistaking lead annoying conflicts now.
so how it?
it sounds want merge master v2setup...but code @ head v2setup now, correct?
if so, easy acheive using merge strategy "ours"
so merge master v2setup with
git merge -s ours master edit ok, reading comments, sounds want move ahead on master, v2setup changes. above command can merge master , have want.
or better option use theirs strategy master
git merge -x theirs v2setup
Comments
Post a Comment