解决多个 git 仓库同步管理问题,统一的分支管理
npm install -g git-multi-packages
在控制台中使用命令:
> gm
Usage: gm <command> [options]
Options:
-V, --version output the version number
-h, --help display help for command
Commands:
init|i [options] initialize your project
branch|b [options] switch branches
log|l show the branch lists
store|s store data
help [command] display help for command
> gm init -h
Usage: gm init|i [options]
initialize your project
Options:
-f, --force force initialize
-h, --help display help for command
> gm init -h
Usage: gm branch|b [options]
switch branches
Options:
-n, --name <name> branch name
-u, --upstream --set-upstream
-r, --remove <name> remove branch
-h, --help display help for command
> gm log -h
Usage: gm log|l [options]
show the branch lists
Options:
-h, --help display help for command