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
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.