Thread (1 message) 1 message, 1 author, 2016-06-15

Re: How to pull only a few files from one branch to another?

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:42:50

Daniel Barkalow [off-list ref] writes:
You don't pull in a few files, you apply the changes made in a few 
commits:

  git diff HEX_OF_NIT_FIX^ HEX_OF_NIT_FIX | git apply

If there's other stuff in the nit-fixing commit, shame on you, but you can 
edit the patch before applying it to remove everything that's not what you 
want.
Or just:

	git cherry-pick HEX_OF_NIT_FIX

possibly followed by tweaking the result and running:

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