tags:

views:

33

answers:

1

I want v0.1.27 of nodejs code base.

This is what I did.

git clone git://github.com/ry/node.git 
cd node
git checkout -b v0.1.27 

However when I look at v0.1.27 code base changelog there I see changelog for 0.1.32 also. It seems I did not checkout v0.1.27.

How do I checkout a branch from a tag?

+3  A: 

What you did is create a local branch, called v0.1.27, starting from HEAD. If you only want to have a look at the v0.1.27 tag, just remove the -b option:

git checkout v0.1.27

If you plan to make changes, you might want to create a tracking branch:

git checkout -b --tracking my_v0.1.27 v0.1.27
amx