用Git克隆库出错

问题描述
今天用SourceTree克隆库的时候,出现了如下报错
warning: templates not found /usr/local/git/share/git-core/templates

问题解决
在终端输入
sudo mkdir /usr/local/git
sudo mkdir /usr/local/git/share
sudo mkdir /usr/local/git/share/git-core
sudo mkdir /usr/local/git/share/git-core/templates
sudo chmod -R 755 /usr/local/git/share/git-core/templates