2012-10-15 68 views
3

我想更新GitHub Web界面的分叉回购。如何从GitHub网站更新分叉的回购?

我试图从其他的问题了一些东西,但它给了我fatal: not a git repo当我使用git remote add upstream git://blabla

+0

你想更新github网页上的上游链接?对不起,这没有选择。 –

回答

1

首先尝试使用HTTPS地址,如GitHub FAQ提到:

git remote add upstream https://github.com/octocat/Spoon-Knife.git 
# if upstream already exist 
git remote set-url upstream https://github.com/octocat/Spoon-Knife.git 

,并确保案件在这个地址中使用(这是区分大小写的,最轻微的错误会给你“not a git repo”)。

+0

在Web界面中可以吗?我在控制台上取得了一些进展。我输入了错误的远程URL。我该如何改变它?它给“远程URL已经存在” – Imrahil

+1

@Imrahil使用'git remote set-url':见http://git-scm.com/docs/git-remote。这将允许您更新/替换与远程关联的网址。 – VonC

相关问题