From: Sean Date: Fri, 14 Mar 2008 15:25:01 GMT Subject: Re: How about cherry-pick --squash? Message-ID: In-Reply-To: <46dff0320803140815q5a342f5fjdde02c6b5fde4e5f@mail.gmail.com> On Fri, 14 Mar 2008 23:15:32 +0800 "Ping Yin" wrote: > Sometimes i want to cherry pick a commit, but i don't want the commit > message of this commit. What i want is the patch corresponding to > this commit to be squashed to the top commit? > > Now i have to type > > git format-patch -1 --stdout | git apply --index && git commit --amend Hi Ping, There is an easier way: $ git cherry-pick -n $ git commit -a --amend HTH, Sean