Improvement

December 4, 20191 Minute Read

Expanded branch protection rules

The following improvements have been made to protected branches in order to facilitate more granular combinations of rules:

  • Reject any push that contains a merge commit by enabling Require linear history
  • Grant all users with push access the ability to force-push to a protected branch by enabling Allow force pushes
  • Grant all users with push access the ability to delete a protected branch by enabling Allow deletions

Learn more about enabling branch restrictions on GitHub

Subscribe to our developer newsletter

Discover tips, technical guides, and best practices in our biweekly newsletter just for devs.

By submitting, I agree to let GitHub and its affiliates use my information for personalized communications, targeted advertising, and campaign effectiveness. See the GitHub Privacy Statement for more details.

Expanded branch protection rules - GitHub Changelog