Abd*_*rim 3 git git-bash visual-studio-code vscode-settings
I have looked at most of the posts describing the first error on the title : "Visual Studio Code cannot detect installed git".
Nevertheless, I believe that the second error "error launching git: The filename or extension is too long." generates the first one.
Could you help me?


Any idea?
Thank you for the time invested!
我已经where git在 Windows 命令提示符下执行了命令:
C:\Users\<my-user>where git
c:\Program Files\Git\bin\git.exe
C:\Program Files\Git\cmd\git.exe
Run Code Online (Sandbox Code Playgroud)
我已经where git在 GIT BASH 上执行了命令:
$ where git
C:\Program Files\Git\mingw64\bin\git.exe
C:\Program Files\Git\bin\git.exe
C:\Program Files\Git\cmd\git.exe
Run Code Online (Sandbox Code Playgroud)
我已经执行的命令git --version上C:\Program Files\Git\bin\git.exe:
$ "C:\Program Files\Git\bin\git.exe" --version
error launching git: The filename or extension is too long.
Run Code Online (Sandbox Code Playgroud)
我已经执行的命令git --version上Git\mingw64\bin\git.exe:
$ "C:\Program Files\Git\mingw64\bin\git.exe" --version
git version 2.20.1.windows.1
Run Code Online (Sandbox Code Playgroud)
Git Bash 安装了第三个版本的 git,它可以在我的计算机上通过此路径运行 C:\Program Files\Git\mingw64\bin\git.exe
Visual Studio Code > 文件 > 首选项 > 设置 > 搜索设置 - 输入 git.path > 在 settings.json 中编辑
{
"git.path": "C:\\Program Files\\Git\\mingw64\\bin\\git.exe",
...
}
Run Code Online (Sandbox Code Playgroud)
现在,Git 再次在 Visual Studio Code 上工作
| 归档时间: |
|
| 查看次数: |
7704 次 |
| 最近记录: |