News for hackers. Stuff that matters.
Re:A simple guide for getting started with git by zrail on Monday January 09, 2012 @09:50AM (#3442670)
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 by dave1010uk on Monday January 09, 2012 @01:56PM (#3443744)
Or, if you don't want to keep untracked files:

    git reset --hard <commit>
Re:A simple guide for getting started with git by Aga on Monday January 09, 2012 @06:31PM (#3444866)
Please note that this does more then what the parent suggests doing by "git checkout".

This destroys untracked changes and resets your current branch-pointer to <commit>, removing all the commit-history that comes after <commit>. (You can still recover them from the database, e.g. with "git reflog")

Re:A simple guide for getting started with git by pixeldude on Monday January 09, 2012 @09:51AM (#3442677)
I'll add that one to the guide as well. Thanks!