Process Flow - Adding a submodule
Start in main repo
Run git submodule add <url> <path>
Git clones submodule repo into <path>
Git records submodule info in .gitmodules
Stage .gitmodules and submodule path
Commit changes
Submodule added successfully
This flow shows how adding a submodule clones another repo inside your repo, records it, stages, and commits the change.