layout: post title: Using submodules on git date: 2021-03-12 00:00:00 description: tags: git, notes, submodules categories: git, notes —
Run the following command, then you can commit and push it.
git submodule add <remote url> <destination folder>
Run the following command to update your local configuration file.
git submodule update --init --recursive
Then you can pull all the submodules right now.
git submodule foreach --recursive git pull origin master
Run the following commands, then you can commit and push it.
git submodule deinit <submodule path>
git rm <submodule path>
git config --global status.submoduleSummary true
git config --global diff.submodule log