没有活动的源代码控制提供程序

编程入门 行业动态 更新时间:2024-10-28 11:19:34
本文介绍了没有活动的源代码控制提供程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我的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.

更多推荐

没有活动的源代码控制提供程序

本文发布于:2023-05-31 22:04:32,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/400204.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:源代码   程序

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!