Skip to content

Latest commit

 

History

History
83 lines (56 loc) · 1.33 KB

README.md

File metadata and controls

83 lines (56 loc) · 1.33 KB

git-multi-packages

解决多个 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