首页 > 其他 > 详细

go get不能获取github包的解决办法

时间:2020-02-28 23:54:30      阅读:513      评论:0      收藏:0      [点我收藏+]

问题:

fatal: unable to access 'https://github.com/chenqionghe/amount-calculator/': Failed to connect to github.com port 443: Operation timed out

原因很明显,是因为go get是基本git的方式获取仓库的,然后默认用的是https的,被拒绝了,我们需要换成ssh的

解决

命令行替换

 git config --global url.git@github.com:.insteadOf https://github.com/

go get不能获取github包的解决办法

原文:https://www.cnblogs.com/chenqionghe/p/12380433.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!