Associate git repo with existing fork network

情到浓时终转凉″ 提交于 2019-12-11 02:07:29

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!