Following scenario:
I forked an open source repository (GitHub -> project -> Fork
). Then I cloned my project copy locally, made some changes in th
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).