git submodules #

Submodules let several GitHub repositories share code. If you maintain several similar Apps, they are a good way to keep the common code in one place.

Add a submodule #

Run a command like this at the root of your repository:

git submodule add https://github.com/vistalab/vistasoft vistasoft
Warning

Do not use an SSH URL for a submodule (like git@github.com:something/something.git). brainlife.io cannot clone your App if a submodule uses a git@ URL. Check and fix the URLs in the .gitmodules file.

Copyright © 2017 - 2026 brainlife.io | Please report issues on GitHub Issues or send us your comment at Slack.