Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/git/23.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/visual-studio-code/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
VS代码作为Git编辑器,带有--wait选项';不允许我编辑交互式重新基准文件_Git_Visual Studio Code_Windows 10 - Fatal编程技术网

VS代码作为Git编辑器,带有--wait选项';不允许我编辑交互式重新基准文件

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

我在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 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文件吗