Feature request: undo merge

Good day.

Been using GitHub for over a decade, only now realized that users could benefit from having an “undo merge” button for PRs. I think Gmail used to have that for sending emails as an experimental Gmail Lab feature (perhaps they still do). I believe it would make this platform even more indispensable when it comes to dealing with merges.

It may seem like a bad idea to some, but please keep in mind that one of the jobs interfaces have is not only be pretty, but also be accessible to everyone, and since we’re all human, our nature lets us make mistakes when we’re acting without thinking, e.g. when we’re tired or just not paying attention.

Hi @snshn Thanks so much for sharing this! I’ve passed the feedback along to our product team. Though I can’t guarantee anything or share a timeline for this, I can tell you that it’s been shared for consideration.

As an alternative (if you are not already aware of this list) there are a few ways to undo things with Git, we even detail a few in this blog post:

Sometimes resetting the branch back to the commit you want to keep locally, then force pushing the branch at that commit back to GitHub can be a useful option. I hope that helps.

1 Like