git 命令行下快捷操作其它项目
git-shortcut helps you quickly run git commands work with multiple repos without switch directory
npm install -g git-shortcut
g -s b ../blog # 添加别名 add alias
g b status # 使用别名 use alias
g b pull
g ../static pull # 直接操作目录
g push # 如果没有别名匹配时, g 相当于 git 的别名
# work as a alias for git if no alias matched
# cwd Main
g -s - ../static # 添加`-'别名
g - status #
cd ../static
g - st # show status of Main
g -p - pull # pull current repo and alias `-'
g -p b pull # pull current repo and alias `b'
g -p -,b pull # pull current repo, alias `-' and `b'
g -s b ''
~/.git-shortcut.yml
MIT