gitでリモートブランチをローカルにcheckoutする
新しくmasterブランチをクローンしてきて、
別のブランチもcheckoutしてpullしたい時がありますよね
そういう時は、このコード
git checkout -b local_branch_name origin/remote_branch_name
通常のチェックアウトのコマンドに、
続けてリモートのブランチ名を入力するだけでcheckout / pull ができます。
メモ
新しくmasterブランチをクローンしてきて、
別のブランチもcheckoutしてpullしたい時がありますよね
そういう時は、このコード
git checkout -b local_branch_name origin/remote_branch_name
通常のチェックアウトのコマンドに、
続けてリモートのブランチ名を入力するだけでcheckout / pull ができます。
メモ