中止交互式 Rebase
你已经开始了交互式 rebase。在你选择提交的编辑器中,你确定出现了问题(例如缺少提交,或者你选择了错误的 rebase 目标),并且你想要中止 rebase。
要做到这一点,只需删除所有提交和操作(即所有不以 #
符号开头的行),rebase 将被中止!
编辑器中的帮助文本实际上提供了以下提示:
# Rebase 36d15de..612f2f7 onto 36d15de (3 command(s))
#
# Commands:
# p, pick = use commit
# r, reword = use commit, but edit the commit message
# e, edit = use commit, but stop for amending
# s, squash = use commit, but meld into previous commit
# f, fixup = like "squash", but discard this commit's log message
# x, exec = run command (the rest of the line) using shell
#
# These lines can be re-ordered; they are executed from top to bottom.
#
# If you remove a line here THAT COMMIT WILL BE LOST.
#
# However, if you remove everything, the rebase will be aborted.
# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
# Note that empty commits are commented out