How to automatically stage files.

A version ago the files that changed were staged automatically.  This is not so any more.

I also cannot find the checkbox next to "Unstaged files" mentioned for earlier versions.

Please assist me to autostage files.

3 answers

1 vote

Hi! In SourceTree for Windows, files were not staged automatically, it was always a manual process. Maybe you are confused between the 'No Staging view' and the 'Split view' (where you can drag & drop files)? If you're in the current Windows version, you can use Shift+Ctrl+C to stage all unstaged files at once, is that the option you were looking for?

Regarding the checkboxes, there's a feature request to bring them back and you can find it at SRCTREEWIN-7260. You can vote for it, add a comment or watch it to receive further updates.

Hope this helps :)

Ana

I have opposite problem, git will automatically mark files I add or modify as staged along with many many files from my solution I have not touched at all.  It will also show files I modified or added in Unstaged area.

This results into multiple problems:

  1. Files I have not even touched in any way are now showing as staged in SourceTree or on terminal as a reslult of git status
  2. Files I added or modified are now showing in both staged and unstaged area

I have a reverse problem. Every time I open a commit window, all the files are staged automatically and that's a big NO, because even conflicted files are staged and there's no way to resolve them using external app. How can I turn this off? This happens with v. 2.1.2.5 Win10 x64

I had the same problem with SourceTree on a MacBook.

Solution : At the top of the bottom window(the one that displays the staged files) you will find a select drop down icon. Click this icon and select 'No staging'.

Problem solved.

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

1,206 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