美文网首页
Git问题汇总

Git问题汇总

作者: 万能的小芳芳 | 来源:发表于2017-12-11 17:23 被阅读59次

Mac上使用SourceTree码云拉取公司的quick-cocos项目,爆出以下错误:

image.png
git -c filter.lfs.smudge= -c filter.lfs.required=false -c diff.mnemonicprefix=false -c core.quotepath=false -c credential.helper=sourcetree clone https://gitee.com/hnkw/got.git /Users/jerrywong/project/got-lua 
Cloning into '/Users/jerrywong/project/got-lua'...
warning: templates not found /usr/local/git/share/git-core/templates
error: RPC failed; curl 18 transfer closed with outstanding read data remaining
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed
Completed with errors, see above

问题warning: templates not found /usr/local/git/share/git-core/templates

解决方法

看到冒号前的warning可以知道,这是个警告错误,不影响正常使用,此问题不管他也是可以的。如果真想干掉它,可以打开终端,执行以下命令即可:

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

问题

error: RPC failed; curl 18 transfer closed with outstanding read data remaining
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed

解决方法

执行以下命令,将传输大小限制设大即可(这里设为500M)
git config --global http.postBuffer 524288000


参考文章:
1、使用sourcetree快速拉取github的代码
2、Git 报错:git - error: RPC failed; curl 18 transfer closed with outstanding read data remaining 解决方案

相关文章

  • git问题汇总

    git merge会出现的问题 git revertGit会抱怨:is a merge but no -m op...

  • Git问题汇总

    在Mac上使用SourceTree从码云拉取公司的quick-cocos项目,爆出以下错误: 问题warning:...

  • git 问题汇总

    删除.DS_STORE

  • git/svn 技巧以及常见问题整理

    Git 实用技巧 Git乱码问题解决方案汇总 常用快捷键 常见问题 遇到多个commit回滚的情况,采用方案如下 ...

  • Git和Github问题汇总

    1、"refusing to merge unrelated histories" 执行 时遇到错误"refusi...

  • Git常见问题汇总

    12 git 常见错误解决方法 —————————————————————————————— 命令:git pul...

  • Git 常见问题汇总

    执行git push出现"Everything up-to-date" 原因:1)没有git add .2)没有g...

  • git问题汇总--持续更新

    fatal: refusing to merge unrelated histories

  • git 命令汇总

    git 命令汇总 常用总结 1.$ git help 查看git所有命令的帮助 2.$ git config --...

  • git版本管理

    GIT 版本控制常用命令汇总 git version 查看当前git版本信息 git help 获取全部命令帮助信...

网友评论

      本文标题:Git问题汇总

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