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

This widget could not be displayed.

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.

This widget could not be displayed.

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

This widget could not be displayed.
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
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Published May 30, 2018 in Sourcetree

Tip from the team: configuring Git or Mercurial in Sourcetree

Supported Platforms macOS Windows To make using Sourcetree as simple yet powerful as possible we embed (bundle) dependencies such as Git, Git LFS, and Mercurial. We strive to keep these...

711 views 1 3
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