当我 pull 或推送到 bitbucket 的存储库时,我的 git 出现问题。我总是收到此错误:
fatal: unable to access 'https://myrepo@bitbucket.org/****/**': Failed to connect to bitbucket.org port 443: Connection timed out
我尝试了所有解决方案,但无法解决。
最佳答案
更新:28-08-2020
这是临时修复,但至少在 bitbucket 新 IP 更改后对我有用
注意:- hosts
文件可以在 Windows 中的 C:\Windows\System32\drivers\etc
中找到,在 Linux 中它位于 /etc/主机
。确保您使用管理员权限进行编辑,即在 Windows 中以管理员身份打开记事本,然后打开主机文件。在 Linux 中 sudo gedit/etc/hosts
从终端从任何位置:)
只需在主机文件中添加以下行
18.205.93.0 bitbucket.org
对于之前编辑过 etc/hosts
文件但现在停止工作的所有现有用户,只需将 bitbucket 的旧 IP 地址替换为新地址,即 etc/hosts
替换
104.192.143.3(旧 IP 随便)bitbucket.org
与
18.205.93.0 bitbucket.org
编码愉快!
关于git - fatal : unable to access : Failed to connect to bitbucket. 组织端口 443:连接超时,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52050241/