ターミナルからGithubコードを取得できないのはなぜですか?

ターミナルからGithubコードを取得できないのはなぜですか?

Google Chromeからgithub.comにアクセスできるようになりましたが、端末からコードを取得することはできません。

[dolphin@MiWiFi-R4CM-srv]~/Documents/GitHub/cruise-open% git pull
fatal: unable to access 'https://github.com/jiangxiaoqiang/cruise-open.git/': Connection timed out after 300016 milliseconds

github.comをpingすると、出力は次のようになります。

[dolphin@MiWiFi-R4CM-srv]~/Documents/GitHub/cruise-open% ping github.com
PING github.com (13.250.177.223) 56(84) bytes of data.
64 bytes from ec2-13-250-177-223.ap-southeast-1.compute.amazonaws.com (13.250.177.223): icmp_seq=1 ttl=45 time=125 ms
64 bytes from ec2-13-250-177-223.ap-southeast-1.compute.amazonaws.com (13.250.177.223): icmp_seq=2 ttl=45 time=124 ms
64 bytes from ec2-13-250-177-223.ap-southeast-1.compute.amazonaws.com (13.250.177.223): icmp_seq=3 ttl=45 time=118 ms
64 bytes from ec2-13-250-177-223.ap-southeast-1.compute.amazonaws.com (13.250.177.223): icmp_seq=4 ttl=45 time=123 ms
64 bytes from ec2-13-250-177-223.ap-southeast-1.compute.amazonaws.com (13.250.177.223): icmp_seq=5 ttl=45 time=119 ms
64 bytes from ec2-13-250-177-223.ap-southeast-1.compute.amazonaws.com (13.250.177.223): icmp_seq=6 ttl=45 time=124 ms
64 bytes from ec2-13-250-177-223.ap-southeast-1.compute.amazonaws.com (13.250.177.223): icmp_seq=7 ttl=45 time=124 ms

フルgithubコードを機能させるにはどうすればよいですか?以前にこのリポジトリを複製したことがあります。はい、私のブラウザはプロキシを使用します。ただし、プロキシ端末を使用しても機能しません。次のように端末でプロキシを切り替えます。

alias proxy="export all_proxy=socks5://127.0.0.1:7890"

ベストアンサー1

プロキシを追加:

git config --global --add remote.origin.proxy "127.0.0.1:7890"

私のために動作します。

おすすめ記事