git merge into master only overwrite changed files -
is possible merge branch edits
branch master
following scenario:
many changes made on edits
new files added.
many changes made master
new files added.
i'd overwrite duplicate files in master
, use files edits
, when im done, master
contain changes edits
, new files edits
, new files master
. if both contained new files, use edits
's new files. if there merges, i'd replace entire file 1 edits
.
i found answer: https://stackoverflow.com/a/1295232/1166285 , tried comment's suggestion made conflicts i'd have resolve.
is possible?
on master
branch, merge in edits
branch theirs
merge strategy:
git checkout master git merge -xtheirs edits
in case of conflicts, prefer theirs
branch. changes master
there no conflict retained.
Comments
Post a Comment