What does 'git remote add upstream' help achieve?

前端 未结 4 814
说谎
说谎 2020-12-22 18:23

I was reading on: https://wiki.diasporafoundation.org/Git_workflow#Rebase_your_development_branch_on_the_latest_upstream

Here is an extract:

Y

4条回答
  •  粉色の甜心
    2020-12-22 19:19

    Let's take an example: You want to contribute to django, so you fork its repository. In the while you work on your feature, there is much work done on the original repo by other people. So the code you forked is not the most up to date. setting a remote upstream and fetching it time to time makes sure your forked repo is in sync with the original repo.

提交回复
热议问题