Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

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

Nina Amos
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 15, 2020

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
Atlassian Team members are employees working across the company in a wide variety of roles.
July 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
AUG Leaders

Atlassian Community Events