剑客
关注科技互联网

【已解决】git clone出错:Failed to connect to github.com port 443 Operation timed out

1.同事的Mac笔记本中,之前用carthage update,出现此错误

把git版本升级后,版本是:2.8.3

然后去直接试试

git clone,

还是出错:

brancepengdeMacBook-Pro:keyoutong minglong$ git clone https://github.com/rhodgkins/SwiftHTTPStatusCodes.git/

Cloning into ‘SwiftHTTPStatusCodes’…

fatal: unable to access ‘https://github.com/rhodgkins/SwiftHTTPStatusCodes.git/’: Failed to connect to github.com port 443: Operation timed out

-》

看来和Carthage 没有关系

2.在另外我的正常的Mac中:

(1)开启了ss翻墙,自动代理

(2)关闭了ss翻墙

都是可以正常clone的:

➜  testGit git clone https://github.com/rhodgkins/SwiftHTTPStatusCodes.git/

Cloning into ‘SwiftHTTPStatusCodes’…

remote: Counting objects: 647, done.

remote: Total 647 (delta 0), reused 0 (delta 0), pack-reused 647

Receiving objects: 100% (647/647), 109.94 KiB | 28.00 KiB/s, done.

Resolving deltas: 100% (349/349), done.

Checking connectivity… done.

-》看来和翻墙没有关系

3.搜:

mac git github 443

mac git clone Failed to connect to github.com port 443 Operation timed out

git clone Failed to connect to github.com port 443 Operation timed out

参考:

在git@osc上创建仓库,错误提示:error: Failed connect to git.oschina.net:443 – 开源中国社区

正常的Mac中,ping:

➜  testGit ping github.com

PING github.com (192.30.253.113): 56 data bytes

64 bytes from 192.30.253.113: icmp_seq=0 ttl=50 time=399.557 ms

64 bytes from 192.30.253.113: icmp_seq=1 ttl=50 time=357.668 ms

64 bytes from 192.30.253.113: icmp_seq=2 ttl=50 time=434.028 ms

^C

<div–<- github.com ping statistics —

分享到:更多 ()

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址