【问题标题】:Sublime text 3 git plugin PATH error - GIT Binary could not be found in PATHSublime text 3 git plugin PATH 错误 - 在 PATH 中找不到 GIT 二进制文件
【发布时间】:2015-04-23 09:57:36
【问题描述】:

这让我发疯了。在其他地方发现了同样的问题...但我无法在我的 Windows 8.1 上完成这项工作。

将 C:\Git\bin 添加到我的 Path 环境变量中。

还尝试在 sublime Git 插件用户设置中更新 git_command var...但它仍然出现!...任何想法将不胜感激...谢谢

这是我尝试将我的 bin 目录添加到 git_command 属性。

 {
// if present, use this command instead of plain "git"
// e.g. "/Users/kemayo/bin/git" or "C:\bin\git.exe"
"git_command": "C:/Git/git.exe"
 }

感谢收看

【问题讨论】:

标签: git sublimetext3


【解决方案1】:

我认为您只是添加了不正确的路径。应该是:

 {
// if present, use this command instead of plain "git"
// e.g. "/Users/kemayo/bin/git" or "C:\bin\git.exe"
"git_command": "C:/Git/bin/git.exe"
 }

【讨论】:

    【解决方案2】:

    在“Preferences > Package Settings > Git Savvy > User”中添加以下内容,以确保它指向您的 git.exe 所在的位置。确保在文件路径中使用“/”而不是“\”。

    {
     "git_path": "C:/Program Files (x86)/Git/bin/git.exe"
     }
    

    【讨论】:

      【解决方案3】:
      {
          "git_binary": "C:/Program Files (x86)/Git/bin/git.exe"
      }
      

      为我完成了这项工作。没有更多关于找不到 Git 二进制文件的警告。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2018-06-06
        • 1970-01-01
        • 1970-01-01
        • 2021-04-03
        • 2014-04-14
        • 2015-04-16
        • 1970-01-01
        • 2021-04-17
        相关资源
        最近更新 更多