我已将 VSCode 设置为我的 git 编辑器,详细说明 here .
当我尝试这样做时:git rebase HEAD~3 -i
它会打开一个新的代码窗口,一旦交互式 rebase VSCode 窗口关闭包含触发命令的终端的窗口,就会开始执行 rebase。
据我了解 this编辑器需要触发错误代码以中止 rebase 。
我不确定在 VSCode 中是否有办法做到这一点,或者我是否需要在他们的 git 存储库中打开一个问题/增强功能?或者您是否应该清除所有行然后关闭它应该是相同的?这会中止吗?
最佳答案
我不确定在 VSCode 中是否有办法做到这一点
三年,应该有一种方法可以使用 VSCode 1.46 (May 2020) 中止/取消 rebase
Abort in progress rebase
You can now abort an in progress rebase operation using the Git: Abort Rebase command.
见 issue 99015 (来自 issue 72576 )和 PR 97071 .
关于visual-studio-code - 当 VSCode 设置为 Git 编辑器时中止交互式 rebase ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46308424/