Re: How to pull only a few files from one branch to another?
Daniel Barkalow <barkalow@iabervon.org> writes:
Show 8 quoted lines
> 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