开发者

How to get to a particular git tag

开发者 https://www.devze.com 2022-12-24 12:14 出处:网络
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

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
0

精彩评论

暂无评论...
验证码 换一张
取 消