如何同步GitHub fork?

时间:2016-05-16 02:21:21

标签: github synchronize git-fork

我试图按照here找到的指令,但在第一步失败了:

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 个答案:

答案 0 :(得分:0)

您需要先将upstream添加到remote列表中,然后再添加git remote add upstream https://github.com/ORIGINAL_OWNER/ORIGINAL_REPOSITORY.git

git remote -v

执行upstream应该会显示您的git fetch upstream,现在{{1}}应该适合您