How to get to a specific git tag

I want node0s node base v0.1.27.

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 the list of changes in v0.1.27 code, I also see the 0.1.32 change log. It seems I did not check v0.1.27.

How to check a branch from a tag?

+7
git github
source share
1 answer

What you have done is create a local branch called v0.1.27, starting with HEAD. If you want to see only the v0.1.27 tag, just remove the -b option:

 git checkout v0.1.27 

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

 git checkout -b --tracking my_v0.1.27 v0.1.27 
+17
source share

All Articles