Skip to contentSkip to conversation

git-pull question

DISCUSSION Joakim Tjernlund 2 participants 2 messages Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

Why isn't
git checkout -b myb otherb
git pull . thirdb

the same as
git checkout -b myb otherb
git pull . thirdb:myb

Jocke

#1 lore raw

Hi,

Quoted 7 lines · Joakim Tjernlund

Why isn't
git checkout -b myb otherb
git pull . thirdb

the same as
git checkout -b myb otherb
git pull . thirdb:myb

You have to understand that "thirdb:myb" means "fetch the branch thirdb and _store_ it as myb (if it fast forwards)".

So, it makes no sense at all to use the "remote:local" syntax with pull.

Hth,
Dscho