You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
One of the features I use most in SourceTree is discarding all my changes.
For that, I have been selecting changed files and pressing "Reset". However, this option is available only if all selected files are already in repository (modified/removed etc). If any selected file is new, then "Reset" is grayed out.
So I have to manually select modified files, press "Reset".. and then select remaining files and press "Remove". This is so annoying, oh my god :( Especially when I have dozens of files and I have to go one by one, it takes forever.
It's easier to create a stash and delete it, but it's such a misuse of stashes. Why on earth there is no option to "Reset" my tree to the state of my repository?
Please tell me you have a solution for this.
That ticket is open and there has been no activity since you filed it a few weeks ago. We will review and prioritize when time allows. That's all the update I can provide currently.
Unfortunately I don't have any updates for you on this. Right now that ticket is low on the backlog. We don't prioritize based on the age of a ticket but on votes which helps our small team gauge the impact of an issue and demand for a given fix.
Principal Developer, Sourcetree
If you select one or more modified files that's already in the repository then you can use the "Reset All" option in the Reset… dialog to discard all changes at once. Any files left after that should be untracked and deleted with a simple select all 😀
Senior Mac Developer, Sourcetree
Well in most cases I have both "new" and "modified" files to discard. They are not ordered in any way, so I have to go through the list one by one and select only modified ones. If even one "new" file gets selected, then "Reset All" is grayed out.
Keep in mind that when the list is long, then discarding all changes is really tedious when it should be straightforward. Something like cmd-a, right click, discard.