将分叉的回购与 upstream/master 或 upstream/develop 同步?

Syncing forked repo with upstream/master or upstream/develop?

我按照 this link. Now I am trying to sync my fork because it is something like 50 commits behind. I have seen the instructions here 上的说明分叉了一个回购协议。我只想对我的本地分叉版本进行更改,但想通过从原始版本中提取来继续更新我的本地分叉版本。我的分叉回购和原始回购的默认分支为 'develop'。当我写 'git branch' 时,我得到 * develop

这是否意味着我应该做

git merge upstream/develop

而不是指示

git merge upstream/master

为了将更改拉到我的本地版本?

为了仅将更改推送到我的本地副本但更新 github 我会使用

git push origin/develop

?

抱歉,这是教程提出的一个菜鸟问题,但我真的很担心弄乱原来的问题。

是的,git 合并 upstream/develop 应该有效:您可以通过在 git fetch upstream 步骤之后执行 git branch -avvv 来检查:您应该看到 upstream/develop列为远程分支。

In order to push changes to my local copy only but update github would I would just use git push origin/develop

它将是:

git push origin develop