解决fatal: unable to connect to github.com问题,fatal: Needed a single revision

解决fatal: unable to connect to github.com问题

分类: mac 550人阅读 评论(0) 收藏 举报
命令:bower install jquery     【mac】
错误信息:
bower error status code of git: 128
fatal: unable to connect to github.com:
github.com[0: 你的IP]: errno=Operation timed out
原因:
需要用https才能读到数据
解决方法:输入命令
git config --global url."https://".insteadOf git://


fatal: Needed a single revision

Unable to find current revision in submodule path 'pkgs/conntrack-tools'

解决方法:
rm -rf  pkgs/conntrack-tools


你可能感兴趣的:(解决fatal: unable to connect to github.com问题,fatal: Needed a single revision)