To include model-act in your project, follow these steps:
-
Navigate to your main repository:
cd /path/to/your/main-repo -
Add the model-act repo as a submodule:
git submodule add https://github.com/LarryMarzanJr/model-act.git libs/model-act
Here,
libs/model-actis the folder where the submodule will be placed. You can change this path to fit your project structure. -
Initialize and fetch the submodule:
git submodule update --init --recursive
-
Commit the changes to your repository:
git add .gitmodules libs/model-act git commit -m "Add model-act as submodule"
To pull the latest changes from the model-act repository:
cd libs/model-act
git pull origin main # or another branch
cd ../..
git add libs/model-act
git commit -m "Update model-act submodule"When cloning a repository that already contains submodules (like model-act), use:
git clone --recurse-submodules <repo-url>If you've already cloned the repo without submodules, run:
git submodule update --init --recursive