The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

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

Rishab
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!
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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

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

TAGS
AUG Leaders

Atlassian Community Events