[prev in list] [next in list] [prev in thread] [next in thread] 

List:       git
Subject:    Re: for newbs = little exercise / tutorial / warmup for windows and
From:       Sitaram Chamarty <sitaramc () gmail ! com>
Date:       2008-12-31 16:33:05
Message-ID: slrngln7m1.7bm.sitaramc () sitaramc ! homelinux ! net
[Download RAW message or body]

On 2008-12-31, Daniel Barkalow <barkalow@iabervon.org> 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@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic