Understanding pull requests on GitHub: What happens, when the requesting repository is deleted?

前端 未结 1 989
谎友^
谎友^ 2021-01-01 21:39

Following scenario:

I forked an open source repository (GitHub -> project -> Fork). Then I cloned my project copy locally, made some changes in th

相关标签:
1条回答
  • 2021-01-01 22:09

    Yes, the code will still be there after you delete your repo. As soon as you submit your pull-request, Github internally adds that branch to the target repo (it creates a branch in a non-default namespace, so you usually don't see those).

    Since PRs cannot usually be deleted, those branches will exist in the target repo indefinitely.

    To answer your other question: The code will reside in both your fork and the target repo (originally, at least, unless you delete your fork).

    0 讨论(0)
提交回复
热议问题