0

Let's say I have two local branches master and slave. Did some work on master and committed changes.

Now I want include only part of file from my master to slave.

I do know that how to include whole file. git checkout `slave` git checkout `master` -- <file>

But that doesn't solve my problem.

7ochem
  • 2,183
  • 1
  • 34
  • 42
Dennis Grinch
  • 353
  • 3
  • 13

1 Answers1

0
git checkout `slave` 
mv file file.slave
git checkout `master` -- <file>
mv file file.master
// now munge file.slave with file.master parts you want
David Neiss
  • 8,161
  • 2
  • 20
  • 21