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

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

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.



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.

Suggest an answer

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

Bitbucket Server 7.0 is here!

Hello Community, I’m Anton Genkin, a product manager on the Bitbucket Server and Data Center team and am excited to share that Bitbucket Server 7.0 is now available! It's a platform release, one th...

1,035 views 6 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