Pull all submodules automatically in SourceTree app?

I've setup a repository with submodules to pull a load of themes down for Espresso app — I obviously don't want to do anything with these, just keep them up to date. It seems an easier way than creating a local repository for each, but is there an easy way to pull down the latest versions of each without having to do this manually?

1 answer

1 accepted

Unfortunately there's not, you'll have to open each submodule pull the changes and then commit those to your primary repository. When you pull a submodule you change the commit that the parent is tracking so you'll have to do this. If you're often updating/committing your submodules you're better off having separate repositories.

Hope that helps

That's a shame, It seems it's possible via command line:


Submodules seem a better clutter-free solution for an app's plugins, which might only see one or two changes in a month — is the above something that could be added as a custom script? Never done that before and I'm likely to mess it up!

Be great to see this in SourceTree if it is possible, for this kind of scenario it's handy.

Yep, I would also enjoy this function, app plugins and libraries really win with submodules, so it's something that should be encouraged with a proper implementation in sourceTree.

Is this still the case? We use submodules on a daily basis, it would be nice to just pull the changes and set the submodule to the right commit automatically right from the main repo

Suggest an answer

Log in or Join to answer
Community showcase
Jason Wong
Published yesterday in Agility Beta

Welcome to agility

Every team in the world is unique, and so   Atlassian believes   that each and every team's best way of working  needs to  be molded to their unique circumstances  – ...

264 views 5 14
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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot