github - How to merge conflicted file in your branch only in git? -
i have 2 branches branch-a , integration. when create pull request integration branch see conflicts in 1 file. don't want merge whole branch resolve conflicts, want conflicted file merged branch-a , resolve conflicts.
is there way can merge conflicted file branch-a integration branch?
i'm not sure if merging 1 file idea, if want that, create patch changes file , apply on branch-a:
checkout branch-a:
$ git checkout branch-a
create patch:
$ git format-patch branch-a..integration <file_path> --stdout > changes.patch
apply it:
$ git --3way < changes.patch
applying patch stop because conflict, resolve , resume applying:
$ git add <file_path> $ git --continue
Comments
Post a Comment