下面是我打开vscode时得到的输出,vscode源代码控制在那之后就不再起作用了。
尝试重新安装Git或vscode多次,但没有帮助。但我不知道vscode如何在内部运行Git。
Looking for git in: C:\Program Files\Git\cmd\git.exe
Using git from C:\Program Files\Git\cmd\git.exe
> git rev-parse --git-dir
fatal: not a git repository (or any of the parent directories): .git
> git rev-parse --git-dir
fatal: not a git repository (or any of the parent directories): .git
> git rev-parse --git-dir
fatal: not a git repository (or any of the parent directories): .git
> git rev-parse --git-dir
fatal: not a git repository (or any of the parent directories): .git
> git rev-parse --git-dir
fatal: not a git repository (or any of the parent directories): .git
> git rev-parse --git-dir
fatal: not a git repository (or any of the parent directories): .git
> git rev-parse --git-dir
fatal: not a git repository (or any of the parent directories): .git发布于 2020-11-19 15:41:16
尝试从存储库根文件夹中的命令行打开VSCode:
cd c:\path\to\repo
"%LOCALAPPDATA%\Programs\Microsoft VS Code\bin\code.cmd" -n .然后查看错误消息是否仍然存在。
不要在c:\path\to\repo\.git中打开它。
https://stackoverflow.com/questions/64907113
复制相似问题