首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >无法在vscode中初始化源代码管理

无法在vscode中初始化源代码管理
EN

Stack Overflow用户
提问于 2020-11-19 15:25:20
回答 1查看 208关注 0票数 1

下面是我打开vscode时得到的输出,vscode源代码控制在那之后就不再起作用了。

尝试重新安装Git或vscode多次,但没有帮助。但我不知道vscode如何在内部运行Git。

代码语言:javascript
复制
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
EN

回答 1

Stack Overflow用户

发布于 2020-11-19 15:41:16

尝试从存储库根文件夹中的命令行打开VSCode:

代码语言:javascript
复制
cd c:\path\to\repo
"%LOCALAPPDATA%\Programs\Microsoft VS Code\bin\code.cmd" -n .

然后查看错误消息是否仍然存在。

不要在c:\path\to\repo\.git中打开它。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/64907113

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档