Disable SourceTree from automatically adding files on commit

Our team has a Mercurial repository, and is in the process of switching from using Tortoise to SourceTree as the GUI client. I'm finding that when I commit in SourceTree (v1.4.1.0 for Windows), it automatically adds all untracked files to the repository, whereas in Tortoise the files remained untracked until/unless I explicitly added them to the repository.

I'd prefer that SourceTree not add new files to the repository automatically, but I cannot figure out how to disable the default auto-add behavior. Therefore, my question is:

Q: Is it possible to configure SourceTree to refrain from adding new files to the repository on commit, by default?

Thank you, in advance.

4 answers

What commit mode are you using? "staged" or "selected"?

From a bit of web searching, it appears that "staging" is a Git feature without a (built-in) equivalent in Mercurial. That said, I'm pretty new to all of this and could easily be wrong. Is there a staged/selected option in SourceTree when using Mercurial?

Ah, I had no idea that was a difference. I only use Git, so I can't really help here.

Did you ever find a setting for this? Using git as well and this auto-adding of files is extremely annoying...

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Oct 23, 2018 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...

981 views 4 2
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