From: Junio C Hamano Date: Sun, 23 Mar 2008 18:34:07 GMT Subject: Re: What I miss from Cogito... Message-ID: <7vzlsp5ly8.fsf@gitster.siamese.dyndns.org> In-Reply-To: <47E69044.3000207@zytor.com> "H. Peter Anvin" 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?