Quick summary
This guide shows how to delete a commit in Bitbucket using SourceTree by resetting your branch to a previous commit. Following these steps lets developers remove unwanted commits from their repository history cleanly and efficiently.
Steps
- On SourceTree's main dashboard, find and select an old commit that comes before the specific commit you want to delete.
- Right-click the selected commit and choose 'Reset Current Branch to this Commit' from the context menu.
- Specify your preferred reset Mode and click 'OK' to proceed.
- Once complete, the unwanted commit is permanently deleted and discarded from your branch history.
.gif)



