This is not a question on how to restore lost branches in Github, but rather how long you have to restore a deleted branch through the following user case story:
Within a pull request (often used as a place for code review) the branch can be merged and then deleted, all in the github GUI. Should you choose to delete it, you are given the option with a bold and underlined word, to "restore" the branch.
I suspect this option has a time limit and that github doesn't keep this available indefinitely.
Does github have a time limit on how long you can do this? If it does, what is that time limit?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…