LoginSignup
3
7

More than 3 years have passed since last update.

【Git】追跡ブランチを変更

Posted at

メモとして残します。

■やり方

1.変更したいブランチに移動

git checkout ブランチ名

2.追跡ブランチ

git branch -u origin/リモートブランチ名

■余談

ローカルブランチと、リモートブランチがマッチした場合は、追跡ブランチを自動的に切り替えるみたいな設定があればいいんだけどな。。。
リモートブランチと追跡ブランチは別とはわかってるけど、基本的に追跡したいのはリモートの場合が多いと思うので、、、、

3
7
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
3
7