GIT 报错:Result too large 解决办法

在使用bower install命令下载前端依赖的js插件时,git出错了,报错信息如下:

bower ECMDERR Failed to execute "git ls-remote --tags --heads git://github
.com/angular/bower-angular-animate.git", exit code of #128 fatal: unable to conn
ect to github.com: github.com[0: 192.30.252.129]: errno=Result too large github.
com[1: 192.30.252.129]: errno=Result too large

Additional error details:
fatal: unable to connect to github.com:
github.com[0: 192.30.252.129]: errno=Result too large
github.com[1: 192.30.252.129]: errno=Result too large

Google baidu了一圈没找到答案,求助于小伙伴,给我的解决方案如下:

在用户目录下,找到.gitconfig文件,后面追加如下配置:

[url "https://github.com/"]
  insteadOf = git://github.com/

加完重新尝试就ok了,貌似是我司的代理的问题,墙了git://协议,只能使用https协议去访问git,上面的两句话就是把url中的git替换为https。
原文地址:https://www.cnblogs.com/baiyunchen/p/5181710.html