git push 工作完美,但 git pull 不是



git pull停止工作。我正在开发一个额外的分支并将其推送到 github 私有存储库,但是当我尝试提取更改时,它说:

fatal: unable to access 'http://github.com/username/repo.git/': Failed to connect to github.com port 443: Operation timed out

我尝试更改为ssh,但出现相同的错误,但在端口22上

再做一些尝试,我发现在我的分支功能中,我可以做推拉,但不能在开发或主控中,甚至没有任何新分支

(注意:这更像是一个格式化的评论,询问更多细节,而不是答案(

  • 您是否能够从同一 url 再次克隆存储库?

在合适的目录中,运行:

# clone it in a folder that you will delete afterwards :
git clone [url] repo.tmp

(只需检查:您的存储库确实显示在Web浏览器中,对吗?

  • 你有一个遥控器吗?pushpullURL是一样的吗?

要检查这一点,请运行:

git remote -v
  • 您的分支机构是否设置了位于同一远程的远程分支机构?

您可以使用以下内容查看:

# remote branches, if nay, will be mentioned between '[]', like this :
# master     eacf32 [origin/master: ahead 2, behind 3] ...
git branch -vv