# Git Submodule
###### tags: `git`
https://devconnected.com/how-to-add-and-update-git-submodules/
`git submodule add <remote_url> <destination_folder>`
When adding a Git submodule, your submodule will be staged. As a consequence, you will need to commit your submodule by using the “git commit” command.
`git commit -m "Added the submodule to the project."`
`git push`
# Git Submodule Push
```scipt
cd your_submodule
git commit -a -m "commit in submodule"
git push
cd ..
git add your_submodule
git commit -m "Updated submodule"
```
# Other
https://blog.csdn.net/haoyanyu_/article/details/119857693