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 jira.atlassian.com

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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published May 11, 2018 in Sourcetree

Tip from the team: debugging Sourcetree

Supported Platforms macOS Windows If you're reading this and it's not just educational… we know you're unhappy right now and apologize for that   We're dedicated to improving yo...

668 views 9 6
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