2016-05-16 126 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應該爲你工作