One - One Code All

Blog Content

SourceTree克隆代码报错_Mac:warning templates not found /usr/local/git/share/git-core/templates

Linux-Mac   2020-03-06 22:40:18


SourceTree克隆代码报错_Mac:warning templates not found /usr/local/git/share/git-core/templates


问题:

Mac下,sourcetree克隆代码报错:warning templates not found /usr/local/git/share/git-core/templates


解决方案:

1、终端输入:open /usr/local/,查看该目录发现没有git文件夹;


2、创建对应文件夹,并赋值权限(依次输入如下命令):


sudo mkdir -p /usr/local/git/share/git-core/templates


sudo chmod -R 755 /usr/local/git/share/git-core/templates


3、再次克隆,成功。


拓展:

查看git版本:git --version

查看git地址:which git



上一篇:mac下常用编辑器
下一篇:mac 安装active rabbitmq

The minute you think of giving up, think of the reason why you held on so long.