Skip to content

How to "re-link" my fork to its "grandparent" repo instead of "parent" fork? #22103

Discussion options

You must be logged in to vote

Having the forks restructured would not give you automatic updates. The generic solution is:

  1. Add Alice’s repo to your local repo as a remote (git remote add).
  2. Fetch updates from that remote (git fetch).
  3. Create (or update) a dedicated local branch (upstream is a common name for that). If you don’t touch that branch otherwise, you should be able to fast-forward it on updates, unless Alice does a rebase.
  4. Push that branch to your Github repo.

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants