Can't locally merge PRs anymore #188365
Replies: 2 comments 1 reply
-
|
💬 Your Product Feedback Has Been Submitted 🎉 Thank you for taking the time to share your insights with us! Your feedback is invaluable as we build a better GitHub experience for all our users. Here's what you can expect moving forward ⏩
Where to look to see what's shipping 👀
What you can do in the meantime 💻
As a member of the GitHub community, your participation is essential. While we can't promise that every suggestion will be implemented, we want to emphasize that your feedback is instrumental in guiding our decisions and priorities. Thank you once again for your contribution to making GitHub even better! We're grateful for your ongoing support and collaboration in shaping the future of our platform. ⭐ |
Beta Was this translation helpful? Give feedback.
-
|
This isn’t a bug — GitHub now strictly enforces “Require pull request” rules. Even if a PR is approved, you cannot push a locally created merge commit to a protected branch anymore. The merge must be performed through GitHub’s PR system. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Select Topic Area
Bug
Body
For repositories that have protection rules (main branch can only be altered by pull request), it used to be possible to:
mainlocally,git mergethe feature branch locally creating a 2-parent merge commit with your GPG signature attached, and push this merge commit of the main branch and an approved feature branch torefs/heads/mainon GitHub despite the protection policy.As of at least 2026-02-26 it seems this is broken and now such pushes will be rejected with a GH013: Changes must be made through a pull request error (even though there is an approved PR).
This workflow is essential if you want to sign the merge commit with your own GPG identity.
Beta Was this translation helpful? Give feedback.
All reactions