Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

HOWTO Pull from a folder and force down files/folders using SourceTree.

Please help,

We want to pull all files and sub-folder from a specific folder in a repository, and FORCE them down to lour local machines.
How can one do this in SourceTree?

To clarify, envision we have 1 repository laid out as such:


Then envision, Developer-#1 pushes/comits changes to MyRepo\Project1\Content.
Developer-#2 works in MyRepo\Project1\Code and changes some files, for testing purposes.

How can Developer-#2, use SourceTree, to pull down all files, folders, sub-folders, from the folder "MyRepo\Project1", and merge/over-write all files/folder/sub-folder into their MyRepo\Project1, by ONLY SPECIFICY the folder "MyRepo\Project1"?

If the term "branch", "repository", "Change set", or something else is even considered at all, then that is not the answer to the question. The question can only be answered by one is in SoureTree, looking at the folder "MyRepo\Project1", and some how click, right-click, or go into a menu to force down all changes from that folder.


1 answer

0 votes
Mikael Sandberg Community Leader Dec 03, 2018

Git pull does not allow you to just pull specific folders/files. In order to do that you would have to use something like git submodules (which has several drawbacks) or sparse checkout.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published 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...

7,147 views 5 13
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you