Question regarding updating all submodules when doing a Pull

Hi Team,

With the latest SourceTree, is there a way to update all submodules when doing a Pull?

Thanks

Aravind Viswanathan

2 answers

This widget could not be displayed.
Mike Corsaro Atlassian Team Jan 26, 2018

Hello! Can you go to "Options -> Git" and make sure "Perform submodule actions recursively" is checked? That should run `submodule update --init` when pulling.

I have that checked, but it's not running `submodule update` in version 2.7.

This widget could not be displayed.

Hi

I believe you are looking for the following behaviour:

There is an easier way to do this as well, if you prefer to not manually fetch and merge in the subdirectory. If you run git submodule update --remote, Git will go into your submodules and fetch and update for you

.From https://git-scm.com/book/en/v2/Git-Tools-Submodules

Sourcetree does not currently support that functionality

Suggest an answer

Log in or Sign up to answer
Community showcase
Published May 30, 2018 in Sourcetree

Tip from the team: configuring Git or Mercurial in Sourcetree

Supported Platforms macOS Windows To make using Sourcetree as simple yet powerful as possible we embed (bundle) dependencies such as Git, Git LFS, and Mercurial. We strive to keep these...

861 views 2 3
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