threads / discuss / 30419

branching based on tag.

Subject: branching based on tag.

## tl;dr

2 messages between May 4, 2012 and May 4, 2012.

replies: 1people: 2as markdown or json

karunakar merugu· May 4, 2012, 09:18 UTC · lore

hi I am new to the git. I just cloned the repository by following command git clone git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git After this I checked tags by git tag -l it gives me the lot of tags.I just want to work on some specific tag.Is it possible for me to create separate branch on that specific tag. thanks, karunakar.

Hallvard Breien Furuseth· May 4, 2012, 09:53 UTC · re: karunakar merugu · lore

Re: branching based on tag.

 On Fri, 4 May 2012 14:48:58 +0530, karunakar merugu wrote:
> git tag -l
> it gives me the lot of tags.I just want to work on some specific
> tag.Is it possible for me to create separate branch on that specific
> tag.
 Start a new branch from the tag, and check that
 branch out so you can work in it:
     git checkout -b your-new-branch tagname
 This is shorthand for the two commands
     git branch   your-new-branch tagname
     git checkout your-new-branch
 You should probably not move the tag, though you
 can with the 'git tag' command.
-- 
 Hallvard

← back to recent threads