LoginSignup
6
6

More than 5 years have passed since last update.

gitのリモートブランチを全てチェックアウト

Posted at

リモートと同じ名前でチェックアウトするなら、下記でいけました。
あまり使う場面はないですが、メモとして。

$ git fetch
$ for branch_name in `git branch -r | grep -v master`;do
> git checkout -t $branch_name
> done

参考サイト

6
6
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
6
6