Wednesday, 18 September 2013

Merging a git repo from the origin to the upstream repository

Merging a git repo from the origin to the upstream repository

Let's say I have an upstream repository, which I have forked to a new origin.
If I want to merge changes from the upstream repo into my forked origin, I
would do something like this from within the fork:
$ git merge upstream/master
How would I go the other direction, from origin to upstream? Say I change
something in the fork that I want to push to the parent — how would I go
about that?
Is it just a matter of setting a new remote/upstream for the parent, using
the fork as the parent's upstream?

No comments:

Post a Comment