Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当我在 git 中进行交互式 rebase时,我如何squash提交并停止结束edit同一个提交?
squash
edit
分两步进行,首先是 squash,然后在第二次运行交互式 rebase edit squashed commit 时进行。
或者,您可以使用“编辑”来编辑提交,然后执行例如
git reset --soft HEAD^ git commit --amend