Skip to content

skyline-123/git-submodule-management

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A fast git submodule management cli.

Resources

Stars

Watchers

Forks

Packages

No packages published