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

Checkout with recurse submodules flag

Domen Golob June 1, 2020

Hello,

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

0 comments

Comment

Log in or Sign up to comment
TAGS
AUG Leaders

Atlassian Community Events