5

Scenario:

I need to work on a repo that has a submodule that is not necessary for me (in fact it causes error warnings and problems if I want to use GUIs like SourceTree because of access restrictions, etc.).

Question:

Is there a way to ignore submodules when cloning a remote repo?

Bonus:

I really want to know if this is possible with SourceTree?

Thanks!

Scott G
  • 2,194
  • 1
  • 14
  • 24

1 Answers1

7

git clone by itself does not pull submodules. You'd need to call git submodule update --init to do that... or use one of the variations found in this answer.

To not clone submodules in SourceTree, in the Clone dialog, open Advanced Options and make sure Recurse Submodules is not checked.

Community
  • 1
  • 1
J. Titus
  • 9,535
  • 1
  • 32
  • 45