Reversing a Merge Commit

Cynthia Garde
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 27, 2024

Dear Support, Advisor: our current code repo and deployment setup uses Bitbucket (on the cloud) and AWS code pipelines. We don't use Bitbucket pipelines.

We very much need confirmation about the ability to reverse an already merged commit. Is it possible? If so, how? what's required?

Our hope is that reversing the commit will also reverse the latest deployment that uses it because the reversal will trigger a deployment similar to when a commit is merged.

Please note that this is assuming no pull request is done, which might be what we should be doing in the isolated cases leading to this question, even if it is a development environment.

Thank you so much!
Cynthia

1 answer

1 vote
Aron Gombas _Midori_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 28, 2024

The answer is not specific to Bitbucket Cloud, but it is actually specific to Git.

There are several approaches to "undo", "revert" Git commits, see this StackOverflow topic: https://stackoverflow.com/questions/927358/how-do-i-undo-the-most-recent-local-commits-in-git

 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events