I have a collaborator who is nervous about the longevity of the ‘restore’ functionality of deleted branches in merged PRs. Can anyone provide some clarity as to how long a merged and deleted PR branch is retained for restoring?
I was under the impression that one can restore a deleted PR branch indefinitely, but I can’t find confirmation of that on the GitHub support pages. The only information is second-hand, a quote from a GitHub helpdesk reply from 2013 in this StackOverflow answer:
We use a separate ref namespace for all Pull Requests which we use for various things including restoring the branch. Since we keep those [Pull Request] refs indefinitely, there’s no time limit on restoring a branch.