No, they will not be gc's because they're not wholly unreferenced even if you delete your branch.
Github creates a branch (actually, two) for every pull request. They're in a non-default namespace so you dont usually get them when you pull (or fetch) from the repo.
To see how this looks in practice, do a git ls-remote <REMOTE>
, where <REMOTE>
is either the name of a remote (if it's one your repo knows) or the URL (it doesn't need to be git remote add
ed for this to work). This remote should have some pull requests, or you won't be able to see what I mean.
This will list all refs on the remote (all branches and tags), and you will see some refs like refs/pull/<number>/head
and refs/pull/<number>/merge
. Those refer to the latest commit in the PR and the commit at which it was merged in, respectively.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…