Sourcetree not showing files that it's going to remove with a commit

On SourceTree 1.7.0.32509 we're getting a strange problem, which is setting us back - when committing, we see the changes about to be committed in the usual way, code in the bottom right hand pane for each change listed in the staging pane.

However afterwards we see more changes were actually committed than were shown in SourceTree. The most damaging of which is it commits removes, even in folders that the person committing has never touched.

We first thought we solved this with Tools -> Options -> Git -> Show file changes from all sides of a merge, but it is still happening.

Is this a bug? Are we missing another option or view? We can't upgrade to the latest version because we are in an airgapped environment and Atlassian are no longer supporting that with the tool.

1 answer

For uncommitted changes, there is a filter above the list. What value is selected in that filter? "All", "Pending", "Modified" are some popular options.

You probably want "Pending", which shows all files that have any status besides "Clean" (includes modified, added, deleted, conflicted, untracked, etc).

"Modified" only shows files that are tracked and have changes to commit.

Thanks, I hadn't noticed that before! Which is the right one to see everything that's going to change in the repo? 

Edited the answer.

Thanks Seth - problem is, Pending is the default, and that's what we've been using!

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Brian Ganninger
Published Jan 23, 2018 in Sourcetree

Tip from the team: workflow and keyboard shortcuts

Supported Platforms macOS Sourcetree has a lot to offer and, like many developer tools, finding and using it all can be a challenge, especially for a new user. Everyone might not love ...

651 views 0 4
Read article

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you