我使用了git rebase -i HEAD~5来打包提交。
然后我注意到其中一个提交必须分开处理。
我尝试使用此手册中的交互模式进行操作:
https://git-scm.com/docs/git-rebase#_splitting_commits
命令为git rebase --interactive,但是只有这些内容。
noop
# Rebase 0349ada..0349ada onto 0349ada (1 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
# d, drop = remove commit
#
# 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.
#
所以我不明白如何指示拆分的提交
git rebase --interactive
命令中提供任何参数吗? - larsks