Re: for newbs = little exercise / tutorial / warmup for windows and other non-sophisticated new Git users :-) [Scanned]
On 2008-12-31, Daniel Barkalow <barkalow@iabervon.org> wrote:
>> $ git checkout . // tidy up current commit
>> $ git checkout <version> // roll back
Show 12 quoted lines
> 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.