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:

  1. On SourceTree's main dashboard, find and select an old commit that goes before the specific commit you wish to delete.



  2. Right-click on the selected commit and choose 'Reset Current Branch to this Commit' from the list of options.



  3. After that, specify your preferred Mode and tap 'OK' to proceed.



  4. After completing these steps, the wrong commit will be deleted and discarded accordingly.

Did you find this article useful?