How to select files and sort files at the working copy



Hi, I'm a beginner using SourceTree.

I have two questions.


1) Like the picture above, I selected multiple files (suppose 20 files) at the directory.

How can I upload those selected 20 files at the staging area, by not clicking the checkbox 20 times?


2) My directory is mixed up with files.

For instance, this directory has .md, .png, .h, and .c files in it.

However, I want to see or sort only the .h and .c files at the unstaged files sections.

How can I do it?


  • Best Regards~



1 answer

1 accepted

0 votes
Answer accepted

1) If you go into "split view staging" mode, you can select multiple files (control-click or command-click or shift-click) and drag them to the staged area.

Screen Shot 2016-01-25 at 9.33.54 AM.png

Screen Shot 2016-01-25 at 9.34.05 AM.png

2) If you'll never want to see the other extensions (and they haven't been added to the repo), you can add them to your .gitignore list (or right-click in SourceTree and select "ignore" which will do that for you).  

You could filter a list temporarily using the search functionality (upper right) - but I don't see a way to search for two patterns at the same time

Thanks for your answer.


I use SourceTree at Windows 10 (32 bit) with Git 2.7.0.

The ignore part was fine.


After changing to split view staging, however, I selected a folder that has .c and .h files and

it shown an error. Unfortunately, I didn't write down the error.

I thought it wasn't a big deal so I just closed the error message.

After closing and rerunning SorceTree, it became frozen (grey window showing not responding).


I removed SorceTree and installed it again, but it kept freezes.


This is kind of out of topic from my original question but can you give me some help?

I'm afraid I don't have any insight into that one.  You can try reposting it here as a new question to get more eyes on it.

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,225 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