git-submodule-cli
v1.0.4
Published
A CLI that for git submodules management
Downloads
7
Maintainers
Readme
git-submodule-cli
A CLI that for git submodules management.
Install
npm i git-submodule-cli@latest -g
Usage
In your repository's directory, run the gsc command to execute the git submodule commands.
gsc <command>
Commands:
clone <repository> [destination] Clone the repository and all submodules(contains nested submodules).
add <submoduleRep> [destination] -b <branch> Add submodule to the repository and appoint branch checked out by the submodule.
update [submoduleName] -m [mode] Update all submodules(contains nested submodules) from remote or init,You can also specify to update a submodule,Option m refers to check out the latest commitid of the sub module(remote <default>) or sub module Branch recorded in the main warehouse(init).
remove <submoduleName> Remove a submodule.
status Only show submodules status(contains nested submodules).
diff Only show submodules diff.
help Display help for command.