{"thread":{"id":"5819","subject":"Re: How to checkout a tag?","startedAt":"2006-10-05T12:00:37Z","lastAt":"2006-10-05T12:00:37Z","messageCount":1,"participants":["linux@horizon.com"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"28242","messageId":"20061005120037.16181.qmail@science.horizon.com","threadId":"5819","inReplyTo":null,"subject":"Re: How to checkout a tag?","fromName":"","fromEmail":"linux@horizon.com","sentAt":"2006-10-05T12:00:37Z","receivedAt":"2006-10-05T12:00:37Z","isPatch":false,"sender":{"key":"linux@horizon.com","avatar":null},"body":"> A tag is a ref like any other:\n> \n> \tgit checkout -b branchname tag\n\nFor some operations, \"git pull\" in particular, I need\nto include a \"tags/\" prefix.  E.g.\n\n$ git fetch\nremote: Generating pack...\nremote: Done counting 27780 objects.\nremote: Result has 22237 objects.\nremote: Deltifying 22237 objects.\nremote:  100% (22237/22237) done\nUnpacking 22237 objects\nremote: Total 22237, written 22237 (delta 18295), reused 17624 (delta 14183)\n 100% (22237/22237) done\n* refs/heads/origin: fast forward to branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6\n  from a77c64c1a641950626181b4857abb701d8f38ccc to d223a60106891bfe46febfacf46b20cd8509aaad\nAuto-following refs/tags/v2.6.19-rc1\nremote: Generating pack...\nremote: Done counting 1 objects.\nremote: Deltifying 1 objects.\nremote:  100% (1/1) done\nremote: Total 1, written 1 (delta 0), reused 1 (delta 0)\nUnpacking 1 objects\n 100% (1/1) done\n* refs/tags/v2.6.19-rc1: storing tag 'v2.6.19-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6\n\n$ git pull . v2.6.19-rc1\nerror: no such remote ref refs/heads/v2.6.19-rc1\nFetch failure: .\n\n$ git pull -n . tags/v2.6.19-rc1\nUpdating from e478bec0ba0a83a48a0f6982934b6de079e7e6b3 to d223a60106891bfe46febfacf46b20cd8509aaad\nChecking files out...\nChecking files out...\n 100% (6590/6590) done\nFast forward\n"}]}