LoginSignup
13
12

More than 5 years have passed since last update.

gitでリモートブランチをcheckout

Last updated at Posted at 2014-07-18

コードレビューを行ったり、他の人の作業を動作確認するときに、gitのリモートレポジトリのbブランチを持ってくるときに今までこんなことをやっていました。

$ git checkout -b branch_name origin/branch_name

これがけっこうめんどくさくてなんかないかなーと思ってたら、ありました!

$ git checkout -t origin/branch_name 

これだと、ブランチ名は一回入力するだけでオッケーです!これでgit生活捗ります。

参考サイト

13
12
2

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
13
12