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:

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 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
TAGS
Community showcase
Published in Sourcetree

Sourcetree for Windows - CVE-2019-11582 - Remote Code Execution vulnerability

A vulnerability has been published today in regards to Sourcetree for Windows.  The goal of this article is to give you a summary of information we have gathered from Atlassian Community as a st...

4,955 views 0 12
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