How to get to a particular git tag
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 whe开发者_如何学Pythonn 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?
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
精彩评论