From: Ingo Molnar Date: Wed, 20 Apr 2005 20:32:35 GMT Subject: Re: Change "pull" to _only_ download, and "git update"=pull+merge? Message-ID: <20050420203235.GA13270@elte.hu> In-Reply-To: <20050420200504.GB19112@pasky.ji.cz> * Petr Baudis wrote: > > yet another thing: what is the canonical 'pasky way' of simply nuking > > the current files and checking out the latest tree (according to > > .git/HEAD). Right now i'm using a script to: > > > > read-tree $(tree-id $(cat .git/HEAD)) > > checkout-cache -a > > > > (i first do an 'rm -f *' in the working directory) > > > > i guess there's an existing command for this already? > > git cancel hm, that's a pretty unintuitive name though. How about making it 'git checkout' and providing a 'git checkout -f' option to force the checkout? (or something like this) Ingo