This version of GitHub Enterprise was discontinued on 2022-10-12. No patch releases will be made, even for critical security issues. For better performance, improved security, and new features, upgrade to the latest version of GitHub Enterprise. For help with the upgrade, contact GitHub Enterprise support.
Managing branches in your repository
Viewing branches in your repository
Branches are central to collaboration on GitHub Enterprise Server, and the best way to view them is the branches page.
Renaming a branch
You can change the name of a branch in a repository.
Changing the default branch
If you have more than one branch in your repository, you can configure any branch as the default branch.
Deleting and restoring branches in a pull request
If you have write access in a repository, you can delete branches that are associated with closed or merged pull requests. You cannot delete branches that are associated with open pull requests.