現象:html
在cmd中用go get -u github.com/kataras/iris ,提示:443:Timed out git
因而在 git bash 中 git clone https://github.com/kataras/iris 現象依舊github
用如下命令解決(提早設置好代理):bash
$ git config --global http.proxy "localhost:1080"
補充說明:在使用上述命令前,我還試了下面的命令,彷佛沒起做用。ide
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
修改後:this
git add -A git commit -a -m "hello" git push
小插曲,執行上面的git commit 時,提示:spa
$ 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郵箱、用戶名、密碼後,成功!.net
參考:代理
http://www.javashuo.com/article/p-ebwbphvi-ee.html
http://www.javashuo.com/article/p-oaqafcvy-md.html
——