Skip to content
Joe Maloney edited this page Feb 28, 2025 · 7 revisions

Welcome to the system wiki!

Update all git submodules to latest versions

DELETE YOUR REPO AND START FRESH DO NOT ATTEMPT TO BUILD BEFORE DOING THIS!!

git clone [email protected]:gershwin-os/system.git --recurse-submodules
git branch update-submodules
git checkout update-submodules
git submodule update --recursive --remote
git add .
git commit -m "Updated submodules to latest versions"
git push origin update-submodules

Now create a pull request and ensure CI passes. Delete the update-submodules branch when changes are merged.

Removing a git submodule

git submodule deinit -f libs-back
rm -rf .git/modules/libs-back
git rm -f libs-back
git commit -m "Removed old libs-back submodule"

Add a submodule

It is very important to use https here so others can clone the project

git submodule add https://github.com/gershwin-os/libs-back.git
git submodule update --init --recursive
git add .gitmodules libs-back
git commit -m "Added new libs-back submodule"
Clone this wiki locally