現象:
在cmd中用go get -u github.com/kataras/iris ,提示:443:Timed out
於是在 git bash 中 git clone https://github.com/kataras/iris 現象依舊
用以下命令解決(提前設置好代理):
$ git config --global http.proxy "localhost:1080"
補充說明:在使用上述命令前,我還試了下面的命令,似乎沒起作用。
set https_proxy=127.0.0.1:1080 set http_proxy=127.0.0.1:1080 set GIT_SSL_NO_VERIFY=true
測試一下:
git clone https://github.com/pu369/pu369.github.io.git
修改后:
git add -A git commit -a -m "hello" git push
小插曲,執行上面的git commit 時,提示:
$ git commit -a -m "hello" *** Please tell me who you are. Run git config --global user.email "you@example.com" git config --global user.name "Your Name" to set your account's default identity. Omit --global to set the identity only in this repository. fatal: unable to auto-detect email address (got 'XX@XXX.(none)')
按提示設置github郵箱、用戶名、密碼后,成功!
參考:
https://www.cnblogs.com/terrylin/p/3296428.html
https://blog.csdn.net/u014011112/article/details/52994425
——