Sud*_* RS 21 git macos visual-studio macos-ventura
Mac OS Ventura 中的 VS Code 中遇到“Git not found”错误。
\n如何解决 Mac 上 VS Code 中的此错误?任何帮助表示赞赏:)
\n注意:我的 GIT 在终端中工作正常,但在 VS Code 源代码控制中仅识别\xe2\x80\x99t(左栏中的第三个图标)
\nSud*_* RS 20
刚刚找到了这个解决方案并且有效:
我还附上了解决方案屏幕录制: https://youtu.be/vFJCrzlPOow
VS 代码中未发现 GIT 错误(Mac OS Ventura)
步骤 1:通过运行以下命令检查系统中是否安装了 git
git --version
Run Code Online (Sandbox Code Playgroud)
步骤2:运行以下命令找到GIT的安装路径
which git
Run Code Online (Sandbox Code Playgroud)
步骤 3:打开 Visual Studio Code,导航 VS code -> 首选项 -> 设置 -> 在设置搜索框中搜索“git path” -> “在 settings.json 中编辑”(在第一个选项中)
"git.path", "paste_your_git_path_here"
Run Code Online (Sandbox Code Playgroud)
(提示:按照步骤2找到路径)
这有助于解决 VS Code Git 未找到错误!
谢谢 :)
Lig*_*ing 13
您可以使用 gitxcode-select --install
安装 Apple 版本,也可以使用brew install git
. 检查https://brew.sh或https://git-scm.com/downloads。
小智 10
这是因为安装更新后需要再次接受Xcode许可证。通过运行\xef\xbc\x9a 解决此问题
\nsudo xcodebuild -license accept\n
Run Code Online (Sandbox Code Playgroud)\n接受许可证后,vscode 将恢复正常。
\n 归档时间: |
|
查看次数: |
16859 次 |
最近记录: |