Using git submodules if you want to depend on other repositories git submodule add <>
You need to clone the original repo to your local clone You need to change the origin so that you can push your own changes
- you can also just rename the origin to upstream using:
- git remote rename origin upstream
- then add your actual local clone as the origin using:
- git remote add origin git@.git
- git branch -M main
- git push -u origin main
If you need to rename/add/delete the submodules, do not directly delete the file There are git indices that you need to modify
- git submodule deinit -f
- git rm -f
- then rm -rf .git/modules/
If using amplify to deploy, it needs https and needs application permision to clone the submodule repo if it is private
