How about cherry-pick --squash?
- From
Ping Yin <pkufranky@gmail.com>
- Date
- Mar 14, 2008, 15:15 UTC
- Message-ID
- <46dff0320803140815q5a342f5fjdde02c6b5fde4e5f@mail.gmail.com>
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 <sha1> | git apply --index && git commit --amend
How about
git cherry-pick --squash <sha1>
-- Ping Yin