# How to Restore Deleted Branch in Github

> To restore a deleted branch in GitHub, go to the repository, navigate to the Pull requests tab to locate the closed pull request associated with the deleted branch, and click the Restore branch button near the bottom.

Canonical: https://livedemo.ai/tutorials/how-to-restore-deleted-branch-in-github/
Apps: GitHub
Updated: 2026-10-05
Interactive demo: https://story-api.livedemo.ai/workspaces/62255d3d3304f17b8f5e2d03/stories/692a4c91ab56e05a00ff8166/preview?step=1

## Steps

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.
