Repository administrators can protect a specific branch in the repository to limit branch manipulation.

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

  2. Repository settings buttonUnder your repository name, click Settings.

  3. Repository options sub-menuIn the left menu, click Branches.

  4. Selecting a protected branch drop-down menuUnder Protected Branches, select the branch you want to mark protected using the drop-down menu.

  5. Protecting branch checkboxSelect Protect this branch.
  6. Click Save changes.

Further reading