checkout w/ removing untracked files

From: Enrico Weigelt <hidden>
Date: 2016-06-15 22:49:20

Hi folks,

is there an option to do a checkout _exactly_ as the ref'ed tree ?
(so, also remove untracked files) ?

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.


cu
-- 
----------------------------------------------------------------------
 Enrico Weigelt, metux IT service -- http://www.metux.de/

 phone:  +49 36207 519931  email: weigelt@metux.de
 mobile: +49 151 27565287  icq:   210169427         skype: nekrad666
----------------------------------------------------------------------
 Embedded-Linux / Portierung / Opensource-QM / Verteilte Systeme
----------------------------------------------------------------------
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help