Pulling changes from fork parent in Git

前端 未结 2 1826
闹比i
闹比i 2021-01-31 00:08

How do you pull changes from the parent of a fork in Git, specifically in a github configured project?

For example, say I forked http://github.com/originaluser/originalp

2条回答
  •  伪装坚强ぢ
    2021-01-31 00:28

    You can add the parent repository (upstream) as another remote branch. Something like

    git remote add upstream ...
    

    and then you can just git fetch to see any changes and then rebase/merge... whatever.

提交回复
热议问题