- Clone repo with submodules
git clone --recurse-submodules git@github.com:${USERNAME}/${REPO}.git
- Navigate into repo
cd ${repo}
- Update submodules
git submodule update --remote
- Add update
git add .
- Commit
git commit -m "git submodule updated"
- Push
git push origin