git repository manager
npm install @sc-cli/grmnpm i @sc-cli/grm -g`
- 绑定待切换Git仓库地址 `grm bind git@xxx`
- 切换至绑定仓库地址 `grm use bind`
$3
- 添加待切换Git仓库统一地址 `grm add -g [group] -p [protocol] `
- 切换至当前项目对应统一地址仓库 `grm use `
> 注意:如果未指定分组group和协议protocol参数,切换时自动使用当前项目的group和protocol。
$3
> 使用grm或sc-grm作为命令。
#### add
> 添加待切换Git仓库统一地址
`grm add -g [group] -p [protocol] `
#### del
> 删除待切换Git仓库统一地址
`grm del `
#### bind
> 绑定当前项目待切换Git仓库地址
绑定默认地址
`grm bind `
绑定指定名称地址
`grm bind `
#### unbind
> 解绑当前项目待切换Git仓库地址
`grm unbind [name]`
#### use
> 切换至已添加或绑定的Git仓库地址
切换单个地址
`grm use `
切换绑定地址
`grm use bind` or `grm use bind:xxx`
切换多个地址
`grm use origin,bind,xxx`
#### clone
> clone项目,支持url和仓库地址+项目名两种方式
clone项目地址
`grm clone `
clone仓库地址+项目名
`grm clone `
#### ls
> 列出已添加或绑定的待切换Git仓库地址信息
`grm ls``