Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

Stash support for GIT - Submodules

Hello ,

Does stash support sub modules creation and managemnt ? As per the definition - Submodules allow you to keep a Git repository as a subdirectory of another Git repository. This lets you clone another repository into your project and keep your commits separate.

Since we are migrating from clearcase UCM to GIT , we are looking to figure out a way for third party component management / Read only component management as we transition to GIt . In clearcase , we were keeping the modules that were developed and compiled seperately , in a UCM component and were pointing our UCM stream configuration to that particular baseline to import the module library . I assume that sub modules is the only option in GIT to acheive this . Will stash facilitate sub- module usage ?

Thanks ,


2 answers

If you want this feature I recommend you vote for it as I did at

Also as a practical usecase, bamboo does support submodules if your using the full set of Atlassian products.

On a personal note this may be the deciding issue for my team between the purchase of Stash or github enterprise.

Hi Mohan,

I'm afraid to say that Stash doesn't really have any support for submodules. It would be good if we could display submodule links in the file browser, and hopefully we could do something like that, but I'm not sure how we would go about managing them just yet. That shouldn't really stop you from using them though.

That said, personally I would stay away from submodules. They are rougly equivalent to UCM streams, but less integrated. I would just make sure you understand some of the limitiations before using them.

As a suggestion, if you are using Java (for example) I would personally use a tool like Maven/Ivy to manage your dependencies rather than Git Submodules. That is probably a much bigger problem/complexity than just switching SCMs, but something to keep in mind.



Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Bitbucket

Git push size limits are coming to Bitbucket Cloud starting April 4th, 2022

Beginning on April 4th, we will be implementing push limits. This means that your push cannot be completed if it is over 3.5 GB. If you do attempt to complete a push that is over 3.5 GB, it will fail...

2,206 views 2 9
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