从上游github存储库获取失败,原因是挂起
为什么我的git获取失败,原因是:从上游github存储库获取失败,原因是挂起,git,github,Git,Github,为什么我的git获取失败,原因是: fatal: The remote end hung up unexpectedly 我是一个私人项目的合作者,并成功地完成了该项目。我已使用github示例设置了一个遥控器: git remote add upstream git://github.com/{upstream owner}/{upstream project}.git 我可以看到遥控器是使用“git-v show-n上游”添加的 我知道我的ssh密钥可以工作: ssh -T git@gi
fatal: The remote end hung up unexpectedly
我是一个私人项目的合作者,并成功地完成了该项目。我已使用github示例设置了一个遥控器:
git remote add upstream git://github.com/{upstream owner}/{upstream project}.git
我可以看到遥控器是使用“git-v show-n上游”添加的
我知道我的ssh密钥可以工作:
ssh -T git@github.com
Hi miketempleman! You've successfully authenticated, but GitHub does not provide shell access.
但是,当我尝试从上游存储库更新本地存储库时:
mike@ununtu-11:~/{directory}$ git fetch upstream
fatal: The remote end hung up unexpectedly
对于这样一个愚蠢的问题,我深表歉意。我认为,
git://
只读URI不适用于私人回购协议,因此它们不具有全球可读性(即,您只有在获得授权的情况下才能访问回购协议)
尝试使用其他远程URI:
git remote set-url upstream git@github.com:{upstream owner}/{upstream project}.git
或者,使用HTTPS:
git remote set-url upstream https://{your username}@github.com/{upstream owner}/{upstream project}.git
推动上游回购成功了吗?你确定上游所有者为你的用户帐户设置了适当的权限吗?我只是想用上游更改更新我的本地存储库。换句话说,更多的读取权限。但它是一个简单的存储库,所以我读过的文档表明我对它有读/写访问权限。这就成功了。因此,希望任何试图使用git上的私有存储库进行共享开发的人都能找到您的链接!
git remote set-url upstream https://{your username}@github.com/{upstream owner}/{upstream project}.git