Reference: http://stackoverflow.com/a/11593308
I have two branches A and B and, I want to merge branch A's single file with Branch B's corresponding file. How can I do that?
I have two branches A
[master] and B
with the same files but a different programming interface in some files. Now the methods of file f, which is independent of the interface differences in the two branches, were changed in branch B
, but the change is important for both branches. Thus, I need to merge just file f
of branch B
into file f
of branch