Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
badges earned

Your Points Tracker
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

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

Is there any limit for submoduls in a repository?

I try to build a repository with 110 submoduls. I added 91 and now i can't see any of them in the sourcetree window …



3 answers

0 votes
minnsey Atlassian Team Nov 30, 2017


There shouldn't be any limit.
We tend to test using which has ~130 submodules.

Where you adding the submodules through Sourcetree? 

Can you post a screen shot?

Good morning,

the screenshot shows 3 windows: part of ».gitmodules«, part of files and part of the sourcetree-window – not showing one of the modules …

Now I tried to remove (delete) the repository to take it as a new one. I got all the folders, but all of them empty. If a clone one of them, I recieve the files – but it looks like I have to reorganize it all new …



minnsey Atlassian Team Dec 04, 2017

Hi Ulrike

The behviour you describe is correct, By default Sourcetree will no longer automatically clone all the submodules. This is due to the following security issue in Git.

You can re-enable to option in the Sourcetree preferences.

Mike is correct, you'll find this setting in Preferences -> Git -> Perform submodule actions recursively

Brian Ganninger
Senior Mac Developer, Sourcetree

Good morning,

thanks for your answers, I changed my preferences. Because nothing changed, I built a new repository and added all my submodules. I can see them until I had to delete one (context menu). Then the list of submodules disappears …

The entry in .gitmodule was deleted, but the folder not. I deleted the folder by myselve and pushed. It looks ok – on my computer. If I pull this on a second computer I get an error. Somethong like: Difference between Folder and .gitmodule …


minnsey Atlassian Team Jan 18, 2018

Thanks for the update I've created to track this.

Now I know the workflow:

I had to delete the folder first, than to delete the entry in the .gitmodule via sourcetree. Than everybody has to delete the folder and after that to pull the new commit.

The list of submodules is OK than, but I had to talk physically to everybody, who uses the submodule-repository.



Suggest an answer

Log in or Sign up to answer
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...

3,247 views 4 5
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