cherry-pick a commit and keep original SHA code

前端 未结 5 540
孤独总比滥情好
孤独总比滥情好 2021-02-02 05:41

I would like to cherry-pick a commit on a fetched remote while keeping it\'s original SHA commit code (my current branch is based on this remote which I resetted to a previous s

5条回答
  •  后悔当初
    2021-02-02 06:09

    I couldn't find it mentioned in previous answers, so note that it's actually possible to preserve the original SHA if you are cherry-picking on top of the commit's parent, by adding the --ff flag.

提交回复
热议问题