美文网首页
SourceTree克隆代码报错_Mac:warning tem

SourceTree克隆代码报错_Mac:warning tem

作者: 笑胖仔 | 来源:发表于2020-03-17 10:54 被阅读0次

问题:

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

网上搜相关问题,有的说:下载 git-osx

并安装,http://git-scm.com/download/mac,然鹅下载没反应,遂放弃。

解决方案:

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

相关文章

网友评论

      本文标题:SourceTree克隆代码报错_Mac:warning tem

      本文链接:https://www.haomeiwen.com/subject/njizehtx.html