How to Restore Deleted Branch in Github



Guide

  1. Go to the GitHub repository if you want to restore a deleted branch.

  2. If the branch was deleted after a pull request was merged, go to the 'Pull requests' tab in your repository.

  3. Locate the closed pull request that used the deleted branch.

  4. You should see a 'Restore branch' button near the bottom of the pull request. Click this button to restore the branch.

  5. The history and contents of the restored branch will remain intact if done soon after deletion.

🚀

Create your first interactive demo in minutes

No credit card required • Start building today

Start free

    This website uses cookies to enhance the user experience.

    AcceptDecline