Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

I need to reset to a commit from 3 weeks ago and have it be the active commits in bitbucket.

I'm new to bitbucket and sourcetree, I have to reset back to modification in a commit that was done 3 weeks ago and have it those modification be the active source in bitbucket but keep the current set of code changes, for a later date. What is the easiest way to accomplish this.  I have cloned my repository  in sourcetree, can see my commits and branches and the branch that I need to reset back to. What are the steps in sourcetree/bitbucket?

Thank you 

1 answer

0 votes
Tyler T Atlassian Team Jul 16, 2020

It sounds like you should create a new branch before making any modifications to reset your work. That way you will have the other branch as a backup.

There are some differences between git revert and git reset. This guide has more information that you might find useful: https://www.atlassian.com/git/tutorials/resetting-checking-out-and-reverting

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Bitbucket

New improvements to user management in Bitbucket Cloud 👥

Hey Community! We’re willing to wager that quite a few of you not only use Bitbucket, but administer it too. Our team is excited to share that we’ll be releasing improvements throughout this month of...

3,888 views 10 16
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you