LoginSignup
0
0

More than 3 years have passed since last update.

remoteブランチをcheckoutする方法 - Git

Posted at

まずはフェッチしてリモートのブランチをローカルの追跡ブランチへ持ってくる

% git fetch

フェッチされた追跡ブランチを見る、ここにあればチェックアウトできます

% git branch -a                                           
* master
  remotes/origin/HEAD -> origin/master
  remotes/origin/feature/dev

追跡ブランチをローカルの新しいブランチとしてチェックアウトする、これでリモートへpushできます

% git checkout -b dev origin/dev
0
0
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
0
0