-
Notifications
You must be signed in to change notification settings - Fork 4
How to add new submodules?
Guoqing Ge edited this page Aug 12, 2024
·
1 revision
NOTE: Although adding a new submodule is not a difficult task, it does need full attention since cleaning up wrongly added submodules is non-trivial.
Use UPP/MPASSIT as examples:
git clone --recursive git@github.com:rrfsx/rrfs-workflow
cd rrfs-workflow
git submodule add https://github.com/NOAA-EMC/UPP sorc/UPP
git submodule add https://github.com/LarissaReames-NOAA/MPASSIT sorc/MPASSIT
vi .gitmodules
Make modifications as follows:
[submodule "sorc/UPP"]
path = sorc/UPP
url = https://github.com/NOAA-EMC/UPP
branch = develop
ignore = all
[submodule "sorc/MPASSIT"]
path = sorc/MPASSIT
url = https://github.com/LarissaReames-NOAA/MPASSIT
branch = master
ignore = all