Ale*_*tev 19 macos atlassian-sourcetree sourcetree
我收到此错误警告:找不到模板/ usr/local/git/share/git-core/templates当我在本地存储库中克隆repo 这个链接,这个链接和这个链接我试过这个方法而我等了20多个分钟,但回购没有克隆.我使用source-tree和OS X El Capitan.我该如何解决?
dpa*_*luy 24
创建模板文件夹.
在你的情况下,它应该是: mkdir /usr/local/git/share/git-core/templates
小智 7
我也得到了相同的错误警告:模板找不到/ usr/local/git/share/git-core/templates当我在本地存储库中克隆repo然后我找到解决了我的问题的解决方案.我在主目录中添加了[init]部分到.gitconfig,以便在克隆repo时查看SourceTree的git templates目录:
[init] templatedir = /Applications/SourceTree.app/Contents/Resources/git_local/share/git-core/templates
希望它会对你有所帮助!
如果是 macOS 上的源树步骤:
Source tree Menu
Preferences
Git
Click on System Git under Embedded Git Version 2.2.1
Reset to embedded Git
Restart source tree
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
20319 次 |
| 最近记录: |