Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

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

John Brumbelow December 3, 2018

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:

MyRepo\Project1\Code
MyRepo\Project1\Content
MyRepo\Project1\Resources
MyRepo\Project2\Code
MyRepo\Project2\Content
MyRepo\Project2\Resources

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
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
December 3, 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
TAGS
AUG Leaders

Atlassian Community Events