LoginSignup
41
36

More than 5 years have passed since last update.

リモートのブランチをローカルに反映する

Last updated at Posted at 2019-01-31

はじめに

リモートのブランチをローカルに反映する自分用メモです。

ローカルでリモートのブランチを更新

$ git remote update -p

リモートのブランチを確認

$ git branch -r

リモートのブランチをローカルに反映

$ git checkout -b <ローカルのブランチ名> <ローカルに反映したいリモートのブランチ名>
$ git checkout -b dev origin/dev

ローカルのブランチの確認

$ git branch
41
36
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
41
36