git push找不到主机

我试图推送到我已经推动的远程仓库,但是现在我收到一个我不明白的错误.

git push
ssh: Could not resolve hostname github.com: nodename nor servname provided, or not known
fatal: Could not read from remote repository.

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

然后我做了一个git状态

On branch master
Your branch is ahead of 'origin/master' by 2 commits.
  (use "git push" to publish your local commits)
nothing to commit, working directory clean

然后我跑了git remote -v

origin  git@github.com:<username>/<projectName>.git (fetch)
origin  git@github.com:<username>/<projectName>.git (push)

我非常感谢一些指导.我的直觉告诉我这不是一个git问题,而是一些网络问题.任何帮助表示赞赏.

最佳答案 显然苹果的发现过程存在一些错误.我读到了问题
Here
Here

我杀了这个过程,一切都很好.

点赞