何回目かのgit clone できない問題対応
もう何回になるかわからないけど、いつも忘れるgit cloneできないときの解決法を記録する。
よくぶち当たるのが下記の問題
- proxyの設定
- proxyのせいでSSLエラー
- gitバージョンが古い
proxyの設定
到達できないとき。
(たまにdnsの設定できてないとかいるけどまあ)
git config --global http.proxy http://proxy.no.address:portnumber git config --global https.proxy https://proxy.no.address:portnumber
proxyのせいでSSLエラー
SSL certificate problem: ~が出たとき。
あんまりやりたくない
git config --global http.sslVerify false
gitバージョンが古い
401 Authorization Required while accessing ~が出たとき。
もっとやりたくないがurlにユーザ名とパスを設定すると解決する。
git clone https://username:pass@git.no.address
おわり