问题
Using GitHub Enterprise, I forked a private repo. I then made the upstream repo public, which broke the 'fork' relationship between the public upstream and my private personal fork (as noted here). I've now also made my copy of the repo public. As far as I can tell, I can no longer make pull requests from my copy of the repo to upstream, because my copy is not recognized as a fork of upstream.
Can I re-associate my repo with the upstream repo as a fork?
回答1:
GitHub support has removed fork relationships for me before, so I suspect they'd also be able to reattach you.
To do it on your own, I'd:
- Make a new fork of the upstream repo
- Change your personal fork's
origin
to the new fork
You'll lose GitHub history for your current fork (Pull Requests, etc.), but you'll be able to work with upstream again.
来源:https://stackoverflow.com/questions/30893077/associate-git-repo-with-existing-fork-network