0

我确实推送了原始大师,之后出现了错误:

$ git push 起源大师

致命: https ://github.com/myusername/my-first-project-test.git/info/refs not found:你在服务器上运行了 git update-server-info 吗?

我做了:

$ git 更新服务器信息

但这根本没有帮助。

4

1 回答 1

6

这似乎是一个授权问题。

我建议您尝试使用 ssh 协议而不是 https:

git@github.com:<user>/<reponame>.git 

来源

另外,请确保在您的全球范围内.gitconfig您有

[http]
      sslVerify = true

您可以通过发出来从命令行修复它

git config --global http.sslVerify true

来源

于 2012-06-13T16:20:00.250 回答