Live data from Hacker News

A simple guide for getting started with git

rogerdudler.github.com

1–10 of 132 posts

Re: A simple guide for getting started with git

#8
post #6

One thing that is missing is how to revert your working directory back to a tagged revision. Is that done with checkout?

Moving between refs is almost always done with checkout

    git checkout tag-name
Tags are just a fancy label pointing to a commit so you can use them anywhere you'd use a sha1 or branch name.

Re: A simple guide for getting started with git

#9
post #8
post #6

One thing that is missing is how to revert your working directory back to a tagged revision. Is that done with checkout?

Moving between refs is almost always done with checkout git checkout tag-name Tags are just a fancy label pointing to a commit so you can use them anywhere you'd use a sha1 or branch name.

I'll add that one to the guide as well. Thanks!
Post reply on HN