Thursday, October 14, 2010

How to checkout a tag from git

For the people from subversion's world it may be difficult to switch to understandings of git.

Firstly git clone copies "everything" (i.e. commit history) to local machine.


Secondly in git the tag is simply a label to commit.
For listing tags use
      git tag -l
Then you can switch to tag using following command
      git checkout -b

No comments:

Post a Comment