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:

  1. checkout branch-a:

    $ git checkout branch-a 
  2. create patch:

    $ git format-patch branch-a..integration <file_path> --stdout > changes.patch 
  3. apply it:

    $ git --3way < changes.patch 
  4. applying patch stop because conflict, resolve , resume applying:

    $ git add <file_path> $ git --continue 

Comments

Popular posts from this blog

php - How to add and update images or image url in Volusion using Volusion API -

javascript - jQuery UI Splitter/Resizable for unlimited amount of columns -

javascript - IE9 error '$'is not defined -