Just a heads up: On March 24, 2025, starting at 4:30pm CDT / 19:30 UTC, the site will be undergoing scheduled maintenance for a few hours. During this time, the site might be unavailable for a short while. Thanks for your patience.
×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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.