Re: What I miss from Cogito...
- From
- H. Peter Anvin <hpa@zytor.com>
- Date
- Mar 23, 2008, 18:58 UTC
- Message-ID
- <47E6A850.5060308@zytor.com>
- In-Reply-To
- <7vzlsp5ly8.fsf@gitster.siamese.dyndns.org>
Junio C Hamano wrote:
Show 22 quoted lines
> "H. Peter Anvin" <hpa@zytor.com> writes: > >> Native git doesn't have any equivalent, other than: >> >> git clone -n .... tmp >> mv tmp/.git . >> rm -rf tmp >> git checkout HEAD > > Or > > git init > git add remote -f ..... > >> 2. cg-restore >> >> Cogito separated "reset" and "restore". This is a syntactic sugar >> issue, but having to type "git reset --hard -- path" makes me >> nervous, especially since hitting Enter at the wrong time could have >> serious and irrevocable consequences. > > Why --hard?
To make it actually change the file in the working directory (equivalent to the -f option in cg-restore.)
-hpa