Adding Git Submodule
-
UploadAddIn ProgressSubmoduleOn Source Tree, Right Click near Remotes, Add Submodules
Using Git Bash:
git submodule add -b <BranchName>[https://gategit.agate.id/newace/modulexyz.git](https://gategit.agate.id/newace/modulexyz.git) <SubModulePath>
-
Now, you have staging area like this
- .gitsubmodules contains path, url, and branch
-
contains commit reference
-
Commit, then you have Submodules like this.
-
If you are in Unity, you can add package in Package Manager (Window→ Package Manager)
-
If you want to know git submodule capabilities, use git bash and do command
git submodule --help