概要
複数のリポジトリに対してまとめてgit status
を実行したり、各リポジトリに任意のコマンドを実行することができます。
使い方
% gr +@work path/to/repo path/to/some/repo % gr @work status path/to/repo Clean @work path/to/some/repo 2 modified @work
@work
の部分は好きに名前をつけられます。補完もあります。複数の名前があればgr status
でまとめてstatusを見ることもできます。
コマンドのインストール
npm(Node.js)を入れてnpmで入れる。
npm install -g git-run
補完のインストール
% echo 'which gr >/dev/null && . <(gr completion)' >> ~/.zshrc