VS代码作为Git编辑器,带有--wait选项';不允许我编辑交互式重新基准文件
我在Windows 10 pc上将VS代码设置为Git的全局编辑器,如下所示:VS代码作为Git编辑器,带有--wait选项';不允许我编辑交互式重新基准文件,git,visual-studio-code,windows-10,Git,Visual Studio Code,Windows 10,我在Windows 10 pc上将VS代码设置为Git的全局编辑器,如下所示: git config --global core.editor "code --wait" 如果我现在运行类似于git-rebase-HEAD~3-I,那么在启动了长时间的等待VS-code之后,我看到它打开了一个名为git-rebase-todo的选项卡,但在我可以做(或看到)任何事情之前,该选项卡关闭,命令行认为通过显示类似的内容完成了重新基础 Successfully rebased and updated
git config --global core.editor "code --wait"
如果我现在运行类似于git-rebase-HEAD~3-I
,那么在启动了长时间的等待VS-code之后,我看到它打开了一个名为git-rebase-todo
的选项卡,但在我可以做(或看到)任何事情之前,该选项卡关闭,命令行认为通过显示类似的内容完成了重新基础
Successfully rebased and updated refs/heads/Maintenance.
我在同时使用PowerShell和常规控制台时看到这种行为
这是我的全局git配置文件的内容:
[user]
name = Wouter de Kort
email = ...
[winUpdater]
recentlySeenVersion = 2.15.1.windows.2
[core]
editor = code --wait
[diff]
tool = default-difftool
[difftool "default-difftool"]
cmd = code --wait --diff $LOCAL $REMOTE
我认为添加--wait
标志就是我所要做的一切。你知道为什么代码会一次打开和关闭rebase文件吗