How to Delete a Commit in Bitbucket
It is very easy to delete a commit in Bitbucket. Here’s a quick guide on how to do it in simple steps:
- On SourceTree's main dashboard, find and select an old commit that goes before the specific commit you wish to delete.
- Right-click on the selected commit and choose 'Reset Current Branch to this Commit' from the list of options.
- After that, specify your preferred Mode and tap 'OK' to proceed.
- After completing these steps, the wrong commit will be deleted and discarded accordingly.
This website uses cookies to ensure you get the best experience on our website. Learn More
Got it