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

Re: Git clean removing tracked files semi-regularly

From
brian m. carlson <sandals@crustytoothpaste.net>
Date
Aug 28, 2018, 00:58 UTC
Message-ID
<20180828005803.GB432229@genre.crustytoothpaste.net>
In-Reply-To
<MWHPR21MB0701CD1D9653E82116E482ECD60B0@MWHPR21MB0701.namprd21.prod.outlook.com>
On Mon, Aug 27, 2018 at 07:06:59PM +0000, Brennan Conroy wrote:
Show 9 quoted lines
> Hello, I work on a project that uses git. "git clean -xdf" is a common
> command to run to clean up the environment, however sometimes this
> command deletes the entire contents of two of the folders and all the
> files it deletes are being tracked which according to the
> documentation should not be deleted.
> 
> The project is located at https://github.com/aspnet/SignalR and the two folders it likes to delete are https://github.com/aspnet/SignalR/tree/release/2.2/clients/ts/signalr-protocol-msgpack and https://github.com/aspnet/SignalR/tree/release/2.2/clients/ts/signalr
> 
> If you need me to collect git logs etc. please don't hesitate to ask!

It would be helpful to know more about your environment. Is this only reproducible on certain operating systems (e.g. case-insensitive ones)? What version of Git are you using? What does "git status" say before you run git clean?

-- 
brian m. carlson: Houston, Texas, US
OpenPGP: https://keybase.io/bk2204
Previous: Brennan ConroyNext: Brennan Conroy
Message 2 of 4 in “Git clean removing tracked files semi-regularly”
  1. Brennan ConroyAug 27, 2018
  2. brian m. carlsonAug 28, 2018
  3. Brennan ConroyAug 28, 2018
  4. Derrick StoleeAug 28, 2018

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.