为什么我的git fetch失败了:
fatal: The remote end hung up unexpectedly
Run Code Online (Sandbox Code Playgroud)
我是一个私人项目的合作者,并成功地分配了这个项目.我使用github示例设置了一个遥控器:
git remote add upstream git://github.com/{upstream owner}/{upstream project}.git
Run Code Online (Sandbox Code Playgroud)
我可以看到使用"git -v show -n upstream"添加了遥控器
Fetch URL: git://github.com/{upstream owner}/{upstream project}.git
Push URL: git://github.com/{upstream owner}/{upstream project}.git
Run Code Online (Sandbox Code Playgroud)
我知道我的ssh密钥有效:
ssh -T git@github.com
Hi miketempleman! You've successfully authenticated, but GitHub does not provide shell access.
Run Code Online (Sandbox Code Playgroud)
然而,当我尝试从上游存储库更新我的本地存储库时:
mike@ununtu-11:~/{directory}$ git fetch upstream
fatal: The remote end hung up unexpectedly
Run Code Online (Sandbox Code Playgroud)
为这样一个愚蠢的问题道歉.
Abe*_*ker 13
我认为git://
只读URI不适用于私有存储库,因此它们不是世界可读的(即如果您获得授权,您只能访问存储库).
尝试使用其他远程URI:
git remote set-url upstream git@github.com:{upstream owner}/{upstream project}.git
Run Code Online (Sandbox Code Playgroud)
或者,使用HTTPS:
git remote set-url upstream https://{your username}@github.com/{upstream owner}/{upstream project}.git
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
4490 次 |
最近记录: |