Skip to content

What's the cleanest way to update my fork when working with both origin and upstream remotes? #4651

Closed Answered by stefanhaller
PAMinerva asked this question in Q&A
Discussion options

You must be logged in to vote

This is a very good question, and one that doesn't have a good answer right now, I'm afraid.

While the scenario you describe is a very common one for open source contributors, it is one that I haven't paid much attention to so far, because I am in the fortunate position that I have push access to all the repos that I regularly contribute to, so I only need one remote (origin), which makes everything much easier.

Ok, let's see. There are two ways to set up the remotes in your clone, and they both have their pros and cons:

  1. origin is your fork, and upstream is the upstream repo
  2. origin is the upstream repo, and myfork (or whatever name you choose) is your fork.

I suppose 1. is the more natu…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@stefanhaller
Comment options

Answer selected by PAMinerva
Comment options

You must be logged in to vote
1 reply
@stefanhaller
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants