Skip to contentSkip to conversation

stupid git question

DISCUSSION Bob Tracy 3 participants 4 messages Sep 14, 2011

lore
Share & tools
lore

Bob Tracy

author
#0 lore raw

Subject says a mouthful, but I digress...

Pointed "git" at Linus' github.com repository to pull the "-rc6" changes (git pull <repo_url>). Seems to have worked, except I received no updated tags: the latest tag in my local repo copy is "v3.1-rc4".

Is this an expected consequence of doing the initial clone operation from one repo, and then pulling updates from another that, in theory, is identical to the first? If so, is there an officially sanctioned method of switching repositories that doesn't require blowing away the local copy and doing another "git clone"?

Thanks.

--Bob

#1 lore raw
Quoted 11 lines · Bob Tracy

Subject says a mouthful, but I digress...

Pointed "git" at Linus' github.com repository to pull the "-rc6" changes (git pull <repo_url>).  Seems to have worked, except I received no updated tags: the latest tag in my local repo copy is "v3.1-rc4".

Is this an expected consequence of doing the initial clone operation from one repo, and then pulling updates from another that, in theory, is identical to the first?  If so, is there an officially sanctioned method of switching repositories that doesn't require blowing away the local copy and doing another "git clone"?

Do a git fetch --tags <repo url> and you'll get the tags too.

josh

author
#2 lore raw
Quoted 6 lines · Josh Boyer
Quoted 3 lines · Bob Tracy

Pointed "git" at Linus' github.com repository to pull the "-rc6" changes (git pull <repo_url>). Seems to have worked, except I received no updated tags: the latest tag in my local repo copy is "v3.1-rc4".

Do a git fetch --tags <repo url> and you'll get the tags too.

Perfect! Exactly what I needed: thanks!

--Bob

#3 lore raw
In reply to Bob Tracy
Quoted 11 lines · Bob Tracy

Subject says a mouthful, but I digress...

Pointed "git" at Linus' github.com repository to pull the "-rc6" changes (git pull <repo_url>). Seems to have worked, except I received no updated tags: the latest tag in my local repo copy is "v3.1-rc4".

Is this an expected consequence of doing the initial clone operation from one repo, and then pulling updates from another that, in theory, is identical to the first? If so, is there an officially sanctioned method of switching repositories that doesn't require blowing away the local copy and doing another "git clone"?

git fetch --tags https://github.com/torvalds/linux.git

is what you need.

Signature · 1 line
Markus