Reset Branch to a Commit
Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.
Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Except Fisheye and Crucible
Summary
This article should help users to reset a branch to a specific commit.
Solution
Reset a branch to a specific commit
Steps:
1. First, checkout to a specific branch.
2. Then, right click on a specific commit, and select "Reset current branch to this commit". Similar to below:

3. Choose from the following options:

To understand further on the different types of reset (soft, mixed, hard), view this page: https://git-scm.com/docs/git-reset
4. Click OK. All the commit that are made after this specific commit that was reset to are now gone:

Was this helpful?