Reset Branch to a Commit

Still need help?

The Atlassian Community is here for you.

Ask the community

Purpose

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:

 

 

Last modified on Nov 2, 2018

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.