我有带有 Ubuntu bash 和 Visual Studio Code 的 Windows10。
每次我启动 Visual Studio Code 时都会提示一条警告:
Git not found. Install it or configure it using the 'git.path' setting
我通过 bash 终端实际安装了 git:
# which git
/usr/bin/git
如何指示 Visual Studio Code 使用安装在 bash 终端中的 git?
我已经尝试通过 git.path 设置,但我不确定如何将路径设置为相对于 bash 终端的路径。
最佳答案
如果您在 Windows 上运行 Visual Studio Code,则还需要安装适用于 Windows 的 Git。 VsCode 目前无法访问 linux 子系统上的 git。
关于bash - Visual Studio Code "Git not found",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48873161/