git - fatal : unable to access : Failed to connect to bitbucket. 组织端口 443:连接超时

标签 git bitbucket

当我 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/

相关文章:

git - 在 Ubuntu 12.04 上安装 GitLab

git - 尝试使用 TFS 和 GIT merge 分支时访问拒绝写入 VS 项目 .suo

bitbucket - 在 Bitbucket API 中,如何获取所有许可用户的列表?

git - 如何通过 Pull Request 执行 git 回滚?

python - 尝试 git Push 时 Bitbucket 错误日志

php - 支付宝整合

Gitlab Push Failed错误

git - 无法将主机添加到已知主机列表 - 意外删除了我的 .ssh 文件夹中的所有文件

git - checkout 已在工作树中移动的多个文件

git - Jenkins Git fatal error : unable to access 'https//URL.git' : SSL certificate p‌r‌o‌b‌l‌e‌m: self signed certificate