Re: Change "pull" to _only_ download, and "git update"=pull+merge?
- From
- Ingo Molnar <mingo@elte.hu>
- Date
- Apr 20, 2005, 20:32 UTC
- Message-ID
- <20050420203235.GA13270@elte.hu>
- In-Reply-To
- <20050420200504.GB19112@pasky.ji.cz>
* Petr Baudis <pasky@ucw.cz> wrote:
Show 12 quoted lines
> > 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