Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我确实推送了原始大师,之后出现了错误:
$ git push 起源大师 致命: https ://github.com/myusername/my-first-project-test.git/info/refs not found:你在服务器上运行了 git update-server-info 吗?
$ git push 起源大师
致命: https ://github.com/myusername/my-first-project-test.git/info/refs not found:你在服务器上运行了 git update-server-info 吗?
我做了:
$ git 更新服务器信息
但这根本没有帮助。
这似乎是一个授权问题。
我建议您尝试使用 ssh 协议而不是 https:
git@github.com:<user>/<reponame>.git
(来源)
另外,请确保在您的全球范围内.gitconfig您有
.gitconfig
[http] sslVerify = true
您可以通过发出来从命令行修复它
git config --global http.sslVerify true