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

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

Checkout with recurse submodules flag


I would kindly ask if it possible to add to SourceTree that the checkout command could be configurable in such a way that you could add the --recursu-submodules flag to the checkout command.


So I would like to checkout to a specific branch like this:

git checkout --recurse-submodules myBranchToCheckoutOut


As I have investigated, this is not supported right now.

Why is this good to have? For example if I have removed a submodule from my project and checkout to an older commit which still has the submodule and the come back to my master branch, the submodule folder will still linger around.

This recurse submodule flag, prevents the unwanted submodule to be there, after coming from a commit which still has it.


If I am wrong and this is possible to configure, please explain how I can do this :).


Kind regards,

Domen Golob



Log in or Sign up to comment
Community showcase
Published in Sourcetree

Tip from the team: configure your repos for hosting goodness!

Supported Platforms macOS Windows We recently introduced support for additional hosting services such as GitHub Enterprise, GitLab (Cloud, Community Edition, Enterprise Edition), and...

4,294 views 4 8
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