Sublime Text 2 - Unable to find git.exe 错误

今日打开 Sublime Text 2,随即弹出 Package Control - Unable to find git.exe 错误。如下,

Sublime Text 2 - Unable to find git.exe 错误_第1张图片

 

原因曾经通过 git clone 命令获取过 Sublime Package。Sublime Text 每次启动后试图更新 Package,但找不到 git.exe。

解决办法:如错误提示,依路径 Preferences > Package Setting > Package Control > Settings - User, 添加如下配置:

"git_binary": ["C:\\Users\\iSun\\AppData\\Local\\GitHub\\PortableGit_c7e0cbde92ba565cb218a521411d0e854079a28c\\cmd\\git.exe"]

或者修改配置,关闭 Package 更新:

"ignore_vcs_packages": true 

注:windows 环境下,git.exe 的位置为 C:\Users\<username>\AppData\Local\GitHub\PortableGit_<numbersandletters>\cmd\git.exe

参考资料:

I can't find my git.exe file in my Github folder  http://stackoverflow.com/questions/26077449/i-cant-find-my-git-exe-file-in-my-github-folder

ST3: Unable to find git.exe #368  https://github.com/wbond/package_control/issues/368

Sublime: Unable to find git.exe错误  http://www.cnblogs.com/javawebsoa/archive/2013/05/25/3098711.html

你可能感兴趣的:(Sublime Text 2 - Unable to find git.exe 错误)