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/

相关文章:

  • 2021-04-15
  • 2022-12-23
  • 2021-11-21
  • 2021-08-02
  • 2021-07-26
  • 2022-12-23
  • 2022-12-23
  • 2021-06-25
猜你喜欢
  • 2021-08-03
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-20
  • 2021-10-27
相关资源
相似解决方案