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

Pull all submodules automatically in SourceTree app?

badlydrawnrob January 20, 2013

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?

2 answers

1 accepted

1 vote
Answer accepted
KieranA
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 20, 2013

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

badlydrawnrob January 20, 2013

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

http://stackoverflow.com/questions/1030169/git-easy-way-pull-latest-of-all-submodules

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.

jeanfabre March 9, 2015

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.

Jonas Stawski February 15, 2017

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

24 votes
Xiyue Chen February 22, 2019

check this "perform submodule actions recursively" option:submodule.PNG

David Schmidt February 27, 2019

Way to answer something from 2013, Xiyue! Literally came here with this question less than a week after you posted this answer.

Like # people like this
Xiyue Chen February 28, 2019

lol happy to help :) - its the first search came out for me on Google so think someone like you might find it 

Like # people like this
CabbageWarrior April 24, 2020

This answer literally saved me this morning! xD Thanks a lot!

Like # people like this
John Mitchell March 8, 2021

FYI, 2021 calling.. this helped me just now too!  Sometimes necro'ing a post isn't bad at all!

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events