What does 'git remote add upstream' help achieve?

前端 未结 4 845
说谎
说谎 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:16

    This is useful when you have your own origin which is not upstream. In other words, you might have your own origin repo that you do development and local changes in and then occasionally merge upstream changes. The difference between your example and the highlighted text is that your example assumes you're working with a clone of the upstream repo directly. The highlighted text assumes you're working on a clone of your own repo that was, presumably, originally a clone of upstream.

提交回复
热议问题