If I understand forking, it conceptually includes the following steps:
- Mirror-clone source repo for target repo
- Set the upstream remote to the target repo by pointing to the source repo
- Some other things like email subscriptions, etc. (not important for this question)
Here's what it looks like:
Original <ββupstreamβββ Forked (server) (server) β βorigin β (local)
The key difference from cloning is that these steps are server-side, not local. How to do replication manually, on git command line?
Here is what I have done so far:
- Clone source repo to local repo
- Modify the origin panel to indicate target repositioning
- Add upstream remote reference to source repo
At this point, everything is set up on the local repo. I can synchronize changes between source and forked repositories using an intermediate local clone. So here is what I have:
Original Forked (server) (server) β β β βorigin β β ββββββββupstreamβββ (local)
Now, as I click this link to the server, i.e. make the source repo a remote remote server on the fork side on the server side to fit the first diagram?
Please note that this question is not specific to GitHub - I could also do this using BitBucket. Ideally, I should be able to do this on different sites. I read a lot of similar questions here on SO, but there is no clear answer.
git bitbucket github git-fork
metacubed
source share