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

Source Tree : Discard all changes made after a certain commit point

Rishab August 31, 2017

Hi In SourceTree, I need to discard all 8 changes made to my Develop branch (commits done) since yesterday.

What is the best option for me to do this?

I do not need to keep any changes made since then.

SourceTree Query.jpg

 

1 answer

0 votes
jyo
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 31, 2017

Hi Rishab,

If you don't care about any of those recent commits, you're best bet is to do a 'git reset' on the commit you want to point back to. (i.e. reset commit branch to this commit)

Be careful, as this is a destructive operation, and you won't be able to get any of those commits back.

Cheers,

Jesse

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events