This version of GitHub Enterprise will be discontinued on This version of GitHub Enterprise was discontinued on 2020-01-22. 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.

Creating and deleting branches within your repository

You can create or delete branches directly on GitHub Enterprise.

In this article

Creating a branch

  1. On GitHub Enterprise, navigate to the main page of the repository.

  2. Click the branch selector menu.

    branch selector menu

  3. Type a unique name for your new branch, then select Create branch.

    branch creation text box

Deleting a branch

  1. On GitHub Enterprise, navigate to the main page of the repository.

  2. Above the list of files, click NUMBER branches.

    Branches link on overview page

  3. Scroll to the branch that you want to delete, then click .

    delete the branch

Further reading

Ask a human

Can't find what you're looking for?

Contact us