我如何中止正在进行的变基?
How do i abort an ongoing rebase?
电脑重启后,当我检查一个项目的状态时,我看到这个输出:
$ git status
On branch dev
No commands done.
Next command to do (1 remaining command):
squash 4fd089c <redacted: 1 month old commit message>
(use "git rebase --edit-todo" to view and edit)
You are currently editing a commit while rebasing branch '<redacted: deleted branch>' on '1141b14'.
(use "git commit --amend" to amend the current commit)
(use "git rebase --continue" once you are satisfied with your changes)
nothing to commit, working tree clean
如何清除该消息?该应用程序在本地和远程存储库中处于相同的提交阶段,永远不需要对此进行“修改”或“继续”。
您处于 interactive rebase 状态。
因此,如果您真的确定自己不想做任何事情,那么 git rebase --abort
就可以了。
电脑重启后,当我检查一个项目的状态时,我看到这个输出:
$ git status
On branch dev
No commands done.
Next command to do (1 remaining command):
squash 4fd089c <redacted: 1 month old commit message>
(use "git rebase --edit-todo" to view and edit)
You are currently editing a commit while rebasing branch '<redacted: deleted branch>' on '1141b14'.
(use "git commit --amend" to amend the current commit)
(use "git rebase --continue" once you are satisfied with your changes)
nothing to commit, working tree clean
如何清除该消息?该应用程序在本地和远程存储库中处于相同的提交阶段,永远不需要对此进行“修改”或“继续”。
您处于 interactive rebase 状态。
因此,如果您真的确定自己不想做任何事情,那么 git rebase --abort
就可以了。