在 Mac 上用 SourceTree 克隆 github 开源项目时候, 会遇到 warning: templates not found /usr/local/git/share/git-core/templates 警告,然后就克隆失败了.
下面可以解决这个问题
- 在终端输入
$ sudo mkdir -p /usr/local/git/share/git-core/templates
$ sudo chmod -R 755 /usr/local/git/share/git-core/templates
- 重新刻录,大功告成