On 2008-12-31, Daniel Barkalow <barkalow@xxxxxxxxxxxx> wrote: >> $ git checkout . // tidy up current commit >> $ git checkout <version> // roll back > Either that, or: > > $ git checkout <version> > $ git checkout . > > (it doesn't matter whether you get rid of the local modifications and > deletions before switching, or switch first, and then get rid of any > remaining local modifications and deletions) > > You may also want: > > $ git clean I think "git checkout -f <version>" will do *all* of that. -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html