![見出し画像](https://assets.st-note.com/production/uploads/images/53893976/rectangle_large_type_2_11c7fa2499810b5854a17788887212ed.png?width=1200)
SourceTree "Failed to connect to bitbucket.org port 443: Timed out"
会社とか、Proxy環境下のSourceTreeでこんなのが出ることがあります。
ore@orepc MINGW64 ~/dev/bitbucket/ore/oresama-bot (develop)
$ git fetch
fatal: unable to access 'git fetch https://ore@bitbucket.org/ore/oresama-bot':
Failed to connect to bitbucket.org port 443: Timed out
結論を言うと、.gitconfigがこんなことになってます。
~前略~
[https]
proxy = http://200.200.200.200:8080
[http]
[http]
[http]
[http]
[http]
proxy = http://200.200.200.200:8080
もしくは
~前略~
[https]
proxy = http://200.200.200.200:8080
[http]
もしくは
~前略~
[https]
proxy = http://200.200.200.200:8080
色々ありえます。どういうタイミングでこうなるのか、よく分かりません。「またかよ~!」って思いながら、いつも、こんなふうに手書きで直してます。
[https]
proxy = http://200.200.200.200:8080
[http]
proxy = http://200.200.200.200:8080
もしくは、これでもいいと思います。
git config --global http.proxy http://200.200.200.200:8080
git config --global https.proxy http://200.200.200.200:8080
これで、挫折して「SouceTreeって使えんなぁ」って思う人が居たら惜しいなぁ、と思って書きました。
今日のお話は以上です。では、また。
あ、変換まわりで困ってませんか?最近、こんな記事も書きました。どうぞ。