Thread (3 messages) flat view 3 messages, 3 authors, 2016-06-15

Re: Git merge selective files

From: Avery Pennarun <hidden>
Date: 2016-06-15 22:46:56

On Tue, Jun 9, 2009 at 5:53 AM, joe higton[off-list ref] wrote:
    I want to merge changes from a branch but only to one file, I
don't want to pick up the changes from other files. I've scoured
google and the docs a bit but I can't find anything useful. Is this
possible?
You might want to try just using

    git diff old-version new-version | patch -p1

(where old-version and new-version are the appropriate commit ids or
branch names or whatever)

And then committing the results.

Have fun,

Avery
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help