Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

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

Atlassian Community Events