0
0

More than 1 year has passed since last update.

リモート追跡ブランチと上流ブランチ

Posted at

背景

git pull とgit fetchの違いを理解する上でこれらの単語が出てきたので理解する

以下画像を見ながら整理する
ブランチ整理.png

上流ブランチ

origin/developというリモートブランチをpullしてきた時にローカルにdevelopブランチができるが、
このpullしてくる元のブランチ(origin/develop)のこと

リモート追跡ブランチ

上流ブランチと、ローカルブランチを関連付けるためのブランチ(DBで言う中間テーブル)
origin/developというリモート追跡ブランチはリモートのorigin/developブランチとローカルのdevelopブランチを接続(追跡)している。

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