From: Junio C Hamano Date: Wed, 24 Jan 2007 06:58:47 GMT Subject: Re: How to pull only a few files from one branch to another? Message-ID: <7vac08j4go.fsf@assigned-by-dhcp.cox.net> In-Reply-To: Daniel Barkalow 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