2016-05-16 140 views
1

我试图按照指示找到here,但它不能在第一步:如何同步GitHub分叉?

C:\wxFork [master +42 ~0 -32 !]> git fetch upstream 
fatal: 'upstream' does not appear to be a git repository 
fatal: Could not read from remote repository. 

Please make sure you have the correct access rights 
and the repository exists. 

我该怎么办?

谢谢。

+1

你的东东来首先配置上游:https://help.github.com/articles/configuring-a-remote-for-a-fork/ –

+0

@ T.Claverie,谢谢。这工作。 – Igor

回答

0

您需要通过明确地将它添加到您的remote的名单添加您的upstream第一:

git remote add upstream https://github.com/ORIGINAL_OWNER/ORIGINAL_REPOSITORY.git 

做一个git remote -v应该表现出你的upstream现在git fetch upstream应该为你工作