From: Junio C Hamano Date: Wed, 18 Aug 2010 19:51:23 GMT Subject: Re: checkout w/ removing untracked files Message-ID: <7v39ubaedg.fsf@alter.siamese.dyndns.org> In-Reply-To: <20100818193154.GA13204@nibiru.local> Enrico Weigelt writes: > For my Briegel buildsystem (git://pubgit.metux.de/projects/briegel.git/) > I need to checkout a really tree (iow: no untracked files may be > left in the workdir) from git. ATM I'm removing and recreating the > whole directory first, but I hope to get rid of this step. (1) If you have a correctly working "make reallyclean" to remove build artifacts, you wouldn't even need such an option. (2) Have you tried to read up on "git clean -dfqx"?