Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Why need to click discard twice in SourceTree?

This may be a stoopid question, but I have not been able to figure this out - when I want to discard changes to a file in SourceTree, why do I need to click "discard" twice for the selected file? On first click the content of the file will be discarded, but the file stays in the "unstaged" list until I discard it second time. I find it somewhat annoying. 

3 answers

1 vote
minnsey Atlassian Team May 21, 2018


If you are using the Windows version then I believe the is a bug we are currently working on. Could you upload screenshots to show the behaviour to confirm it is the same problem?


This issue is present in

Thanks for your time.

Hello Michael,

Please see the screenshots below, showing UI before and after discarding a file. As you see, the file stays in unstaged list, but the diff tells the file has no changes. The file has to be discarded twice to remove it from unstaged list.

Kind regards,




minnsey Atlassian Team May 22, 2018

Thanks, can I check what version you are running?

Good question. I was pretty sure I was using latest version, but apparently I had I updated to 2.5.5 and verified - UI behavior did not change, files need still to be discarded twice.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Sourcetree

Tip from the team: configure your repos for hosting goodness!

Supported Platforms macOS Windows We recently introduced support for additional hosting services such as GitHub Enterprise, GitLab (Cloud, Community Edition, Enterprise Edition), and...

7,267 views 5 14
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you