Does github keep deleted remote branches in history? If so, can those be restored?

后端 未结 5 1154
暗喜
暗喜 2020-12-02 14:15

I was wondering if there is a way to restore a remote deleted branch in github. History clearly keeps record of the branch and merges with other branches but I\'m not sure i

5条回答
  •  情书的邮戳
    2020-12-02 14:41

    When the branch has been deleted for a very long time (in my case, 1 year), but you had opened a pull request for that branch, you may be able to resurrect it by searching in the pull requests history.

    Once I found the pull request for that branch I could restore the branch. Relevant commit information, etc. are also available from the pull request.

提交回复
热议问题