46
36

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

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
46
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
46
36

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?