From: Sitaram Chamarty Date: Wed, 31 Dec 2008 16:33:05 GMT Subject: Re: for newbs = little exercise / tutorial / warmup for windows and other non-sophisticated new Git users :-) [Scanned] Message-ID: In-Reply-To: On 2008-12-31, Daniel Barkalow wrote: >> $ git checkout . // tidy up current commit >> $ git checkout // roll back > Either that, or: > > $ git checkout > $ 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 " will do *all* of that.