This is not a duplicate of this, or anything else I could find on SO (and outside).
I created a github fork (let's say 'origin') from another repo (let's call it 'upstream'). Time passed and I want to have the upstream changes in origin. Today github has a nifty 'Fetch Upstream' button that updates branches that existed when I created my origin fork, and them alone.
The github docs list commands that are supposedly equivalent to the 'fetch upstream' UI:
$ git fetch upstream
...
$ git checkout main
...
$ git merge upstream/main
So the 'fetch upstream' UI doesn't try to update non-default branches? Let alone create new ones?
What is the right way to achieve this via command line? (I have origin and upstream setup as remotes, and did a fetch --all
)
Is there a place where we can discuss this with the github devs themselves? I couldn't find the right repo (they have 400+). This looks to me like a worthwhile potential improvement.