git-submodule-management
v0.0.14
Published
A fast git submodule management cli.
Downloads
12
Maintainers
Readme
git-submodule-management
A fast git submodule management cli.
Installation
npm install git-submodule-management -g
Usage
Init repository
Clone the repo and all submodules at one time.
gsm clone <repo>
Get status
gsm status
Only show submodule status
gsm status -s
Add and commit changes of the default tracked repo and submodules
gsm ac <message>
Change branch of the default tracked repo and submodules
Switch the branches of the main repo and all submodules at the same time.
gsm checkout <localBranch>
Add new branch to the default tracked repo and submodules
Synchronize the branches of the new main repo and all submodules. The default is to switch based on the branch name of the main repo. If the branch of the main repo and the submodules are inconsistent at this time, an error message will pop up. Please enter the submodules to maintain the branch name of the main repo and then execute this command.
gsm checkout -b <newBranch>
Merge branch to the default tracked repo and submodules
gsm merge <localBranch>
Pull all updates from the default tracked repo and submodules
gsm pull
Push all updates from the default tracked repo and submodules
gsm push