問題:
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/