GIT - 致命的 : Could not resolve host: bitbucket. 组织

标签 git ssh https bitbucket

我知道有很多像我这样的 Git 问题,我可以向你保证我一直在搜索网络并尝试所有解决方案,以至于我需要发布我自己的问题。

一般信息:
操作系统:Windows 7
Git 版本:1.9.0.msysgit.0
ssh 版本:OpenSSH_4.6p1、OpenSSL 0.9.8e 2007 年 2 月 23 日

Git 错误信息:

E:\git-projects\project-psl-v3>git push
warning: push.default is unset; its implicit value is changing in
Git 2.0 from 'matching' to 'simple'. To squelch this message
and maintain the current behavior after the default changes, use:

  git config --global push.default matching

To squelch this message and adopt the new behavior now, use:

  git config --global push.default simple

When push.default is set to 'matching', git will push local branches
to the remote branches that already exist with the same name.

In Git 2.0, Git will default to the more conservative 'simple'
behavior, which only pushes the current branch to the corresponding
remote branch that 'git pull' uses to update the current branch.

See 'git help config' and search for 'push.default' for further information.
(the 'simple' mode was introduced in Git 1.7.11. Use the similar mode
'current' instead of 'simple' if you sometimes use older versions of Git)

ssh: bitbucket.org: no address associated with name
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

所以问题是:

我该如何解决这个问题并推送到远程仓库?
我没有在我的 PC 上进行任何更改(可能是 Windows 更新?)。
我可以在本地提交,我有正确的 ssh key 。
我试过克隆另一个 repo,同样的错误信息。
我确实拥有正确的权限。
我也通过 https 尝试过,同样的错误消息。
我已经重新安装了 ssh 和 git,同样的错误信息。
我也将我的 dns 更改为 4.2.2.1 和 8.8.8.8,同样的错误信息。
我的互联网选项上也没有代理。

任何解决此问题的替代想法将不胜感激。

提前干杯,
里斯

最佳答案

虽然听起来很奇怪,但我认为这是由于我的计算机异常关机造成的,因此重新启动计算机就可以了。

关于GIT - 致命的 : Could not resolve host: bitbucket. 组织,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22933174/

相关文章:

安装 SSL 证书时 Tomcat 没有响应

git - 我如何从一个 fork 的 repo 中制作一个 PR,只针对某些文件,但对它们进行所有提交?

git - 无法在 Windows 上使用 git ://IP/repo. git

elasticsearch - 用于 Elasticsearch 的 ssh 隧道

svn - 使用 ssh 进行身份验证的 Subversion

wcf - 证书,加密和身份验证

git - 反正有没有查看所有以前的 GIT 还原

linux - gradlew 错误 :/usr/bin/env: bash: No such file or directory

git - 是否有 TFS Git API 用于获取文件夹中文件的上次修改日期?

google-app-engine - 如何在 Google Cloud AppEngine 上强制使用 https