Select all files when selecting commit - What does it do?

When I'm commiting to the GIT repository I need to either add files to the index prior to clicking Commit or I need to change Commit mode to "Selected files" and manually select all the new files. What I want to achieve is to enable SourceTree to automatically add all the files that are modified or new in the local repository so I can just fill in the commit message and click Commit. I thought the setting "Select all files when selecting commit" does the trick but it doesn't seem to do anything. Thank you, Adam.

3 answers

1 accepted

Hi Adam,

In the index you can just Cmd+A to select all files and hit 'Commit' which will have them all selected. Alternative in the SourceTree Preferences you can turn off the "Use staging area" option (meaning you can't explicitly stage files) under the Git tab. When committing with this option turned off all files will be selected, too. There's a couple of options available. If neither of these are applicable to you then you could raise a feature request at

Hope that helps

Turning off the staging area is exactly what I had in mind! :-) Thank you.

Hi Adam. Are you using the Windows or mercurial version? Thanks in advance.

Sorry, I forgot to say that I'm using GIT and mac version of the app.

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...

946 views 3 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