LoginSignup
7
7

More than 5 years have passed since last update.

カレントディレクトリ以下の全てのGitリポジトリをTowerに追加するワンライナー

Posted at

SourceTree のセットアップウィザードみたいなことをコマンドラインでやりたかったので。

find . -type d -name .git -not -path "*/vendor/bundle/*" -print0 | xargs -0 -n 1 dirname | xargs gittower -a

このワンライナーは、カレントディレクトリ以下のGitリポジトリ(但し、bundler管理下のものは除く)を探し、gittower -aで Tower に一括で追加している。

7
7
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
7
7