Files
developer-roadmap/roadmaps/git-github/content/adding--updating@x4bnsPVTiX2xOCSyrgWpF.md
Arik Chakma 274082fd77 feat: clean roadmap content and sync scripts (#10181)
* refactor: clean to roadmap content

* refactor: move shared helpers into scripts/lib
2026-07-28 05:45:17 +06:00

757 B

Adding / Updating

To add a submodule to a repository, use git submodule add https://github.com/user/submodule-repo.git, which is the typical format for specifying the URL of the submodule repository. This creates a new folder for the submodule and checks it out at the specified revision. To update an existing submodule to its latest commit, run git submodule update. If you want to pull in changes from upstream while keeping your submodule's history intact, use git submodule sync followed by git submodule update.

Visit the following resources to learn more: