Enforce up-to-date pull requests on GitHub
问题 Our team has a master branch on GitHub and several other feature branches that eventually need to be merged back to master. What should one do to ensure that the feature branch is up to date, before a Pull Request is created on GitHub? Is there a sort of lock that we can implement on the master branch to enforce up-to-date feature branches before Pull Requests can be created? 回答1: GitHub's branch protection can require branches to be up to date before they're merged , but not before they're