美文网首页
【SourceTree】报错记录

【SourceTree】报错记录

作者: 禾子_____ | 来源:发表于2016-11-04 14:14 被阅读98次

1.warning: templates not found /usr/local/git/share/git-core/templates

解决方法:
-》在终端输入 open‍‍ /usr/local/

 在打开的文件夹中,如果没有git的目录:

--》需要安装git http://git-scm.com/download/mac

 在打开的文件夹中,有git目录,并且相应的 share,git-core,templates 目录都有,就是权限问题:

--》在终端输入:
sudo chmod -R 755 /usr/local/git/share/git-core/templates
注意 sudo 创建目录需要输入当前 Mac 用户的密码

---》重新clone


‍‍

2.git clone: error: RPC failed; result=18, HTTP code = 200

解决方法: 向储存库请求更大的文件
-》在终端输入:git config http.postBuffer 524288000

相关文章

网友评论

      本文标题:【SourceTree】报错记录

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