git/list[1] front-page[2] threads[3] people[4] search[5] about
 

checkout w/ removing untracked files

From
EWEnrico Weigelt <weigelt@metux.de>
Date
Aug 18, 2010, 19:31 UTC
Message-ID
<20100818193154.GA13204@nibiru.local>
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
----------------------------------------------------------------------
Next: Junio C Hamano
Message 1 of 3 in “checkout w/ removing untracked files”
  1. Enrico WeigeltAug 18, 2010
  2. Junio C HamanoAug 18, 2010
  3. Enrico WeigeltAug 23, 2010

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.