我的VS Code编辑器的Ubuntu安装表明它没有活动的源代码控制提供程序:
My Ubuntu installation of the VS Code editor states it has no active source control providers:
我正在使用Ubuntu,并且正在运行
I'm using Ubuntu, and running
$ git --version表明它是v2.18.0
indicates it is v2.18.0
我的项目中有一个.git文件夹.
There is a .git folder in my project.
如何解决此问题?
推荐答案另外两个答案探讨了如何在VS Code中设置git可执行文件的路径此处和最初是在这里以及其他.显然,在Windows中,这是必需的.(与linux的 git.path 为 null 相对,但可能从 PATH 调用git)
Two other answers explore setting the path to the git executable in VS Code here and originally here and others. Apparently in Windows this is necessary. (As opposed to linux where the git.path is null, but perhaps git is called from PATH)
要重申,请验证您在VS Code(文件->首选项->设置或F1(打开命令调色板)->设置)中的设置是否包含以下内容:
To reiterate, please verify that your settings in VS Code (File -> Preferences -> Settings or F1 (Open command palatte) -> Settings) contains the following somewhere:
{ // Is git enabled "git.enabled": true, // Path to the git executable "git.path": "C:\\path\\to\\git.exe" }请注意,您必须在右侧窗口中更改设置,这些设置将覆盖左侧窗口中的默认设置.
Note that you'd have to change settings in the right hand window, which override the default ones in the left hand one.
更多推荐
没有活动的源代码控制提供程序
发布评论