今日打開 Sublime Text 2,隨即彈出 Package Control - Unable to find git.exe 錯誤。以下,html
緣由:曾經經過 git clone 命令獲取過 Sublime Package。Sublime Text 每次啓動後試圖更新 Package,但找不到 git.exe。java
解決辦法:如錯誤提示,依路徑 Preferences > Package Setting > Package Control > Settings - User, 添加以下配置:git
"git_binary": ["C:\\Users\\iSun\\AppData\\Local\\GitHub\\PortableGit_c7e0cbde92ba565cb218a521411d0e854079a28c\\cmd\\git.exe"]github
或者修改配置,關閉 Package 更新:web
"ignore_vcs_packages": true windows
注:windows 環境下,git.exe 的位置爲 C:\Users\<username>\AppData\Local\GitHub\PortableGit_<numbersandletters>\cmd\git.exespa
參考資料:htm
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-folderblog
ST3: Unable to find git.exe #368 https://github.com/wbond/package_control/issues/368get
Sublime: Unable to find git.exe錯誤 http://www.cnblogs.com/javawebsoa/archive/2013/05/25/3098711.html