How do I keep the commit message when editing commits via git rebase --interactive?

前端 未结 4 2098
北海茫月
北海茫月 2021-02-05 13:11

I\'m currently in the midst of a git rebase --interactive session, where I\'m editing a commit. I\'m proceeding as suggested by How can I split up a Git commit bur

4条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-02-05 13:14

    Why follow instructions on commit splitting if you don't want it?

    You don't reset to HEAD^, this applies only when splitting commits. Just mark the commit for editing in rebase -i, make your changes, commit --amend and rebase --continue.

提交回复
热议问题