Pau*_*aul 130 git github github-for-mac
我正在使用他们网站上的github Gui管理我的回购,我收到以下错误:
fatal: https://github.com/TeaCodie/TeaCodie-Website.git/info/refs not found:
did you run git update-server-info on the server?
Run Code Online (Sandbox Code Playgroud)
我怎样才能解决这个问题?
Jav*_*ini 77
您可能已更改了存储库名称
在本地存储库中编辑文件:
.git/config
Run Code Online (Sandbox Code Playgroud)
然后检查:
[remote "origin"]
url =
Run Code Online (Sandbox Code Playgroud)
URL与您的远程存储库匹配
它看起来像是一个私有(或删除)的存储库; 如果您在登录时访问存储库页面,它将为您提供真实的URL,可能是https://TeaCodie@github.com/TeaCodie/TeaCodie-Website.git,即指定了用户名?
我在使用github存储库时遇到了同样的问题,并在使用OS X Keychain Credential帮助程序时通过https连接到它.
我的问题是我在OS X的Keychain中存储了错误的凭据(我使用的是我用来注册github.com的电子邮件地址,而不是它提供给你的[username] @ github.com地址).我删除了钥匙串中的旧帐户,只留下了@ github.com,解决了问题.
不确定它是否相关,但是当我检查user.email
本地配置时:
git config -l
Run Code Online (Sandbox Code Playgroud)
它也显示了错误的电子邮件地址,因此我更新了本地git user.email
以使用正确的帐户:
git config user.email <username>@github.com
Run Code Online (Sandbox Code Playgroud)
我的问题是我使用了github提供的克隆https url小部件.该URL不适用于私有存储库,因为您需要在其前面添加用户名.
示例:john拥有的私有仓库和带有协作者山姆的命名小部件正确的URL将是:
HTTPS://sam@github.com/john/widget.git
github提供了url:
https://github.com/john/widget.git
错误消息还有很多不足之处.