git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* Git clean removing tracked files semi-regularly
@ 2018-08-27 19:06 Brennan Conroy
  2018-08-28  0:58 ` brian m. carlson
  0 siblings, 1 reply; 4+ messages in thread
From: Brennan Conroy @ 2018-08-27 19:06 UTC (permalink / raw)
  To: git@vger.kernel.org

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!


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Git clean removing tracked files semi-regularly
  2018-08-27 19:06 Git clean removing tracked files semi-regularly Brennan Conroy
@ 2018-08-28  0:58 ` brian m. carlson
  2018-08-28 18:29   ` Brennan Conroy
  0 siblings, 1 reply; 4+ messages in thread
From: brian m. carlson @ 2018-08-28  0:58 UTC (permalink / raw)
  To: Brennan Conroy; +Cc: git@vger.kernel.org

[-- Attachment #1: Type: text/plain, Size: 1048 bytes --]

On Mon, Aug 27, 2018 at 07:06:59PM +0000, Brennan Conroy wrote:
> 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

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 867 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* RE: Git clean removing tracked files semi-regularly
  2018-08-28  0:58 ` brian m. carlson
@ 2018-08-28 18:29   ` Brennan Conroy
  2018-08-28 19:59     ` Derrick Stolee
  0 siblings, 1 reply; 4+ messages in thread
From: Brennan Conroy @ 2018-08-28 18:29 UTC (permalink / raw)
  To: brian m. carlson; +Cc: git@vger.kernel.org

I'm using windows. Have had it happen on 8.1 and 10.

"git status" shows "nothing to commit, working tree clean". I am using git version 2.17.1.windows.2

-----Original Message-----
From: brian m. carlson <sandals@crustytoothpaste.net> 
Sent: Monday, August 27, 2018 5:58 PM
To: Brennan Conroy <brecon@microsoft.com>
Cc: git@vger.kernel.org
Subject: Re: Git clean removing tracked files semi-regularly

On Mon, Aug 27, 2018 at 07:06:59PM +0000, Brennan Conroy wrote:
> 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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Git clean removing tracked files semi-regularly
  2018-08-28 18:29   ` Brennan Conroy
@ 2018-08-28 19:59     ` Derrick Stolee
  0 siblings, 0 replies; 4+ messages in thread
From: Derrick Stolee @ 2018-08-28 19:59 UTC (permalink / raw)
  To: Brennan Conroy, brian m. carlson; +Cc: git@vger.kernel.org

On 8/28/2018 2:29 PM, Brennan Conroy wrote:
> I'm using windows. Have had it happen on 8.1 and 10.
>
> "git status" shows "nothing to commit, working tree clean". I am using git version 2.17.1.windows.2

I tested on my machine and could not reproduce this issue. Could you 
find a full repro (first command 'git clone 
https://github.com/aspnet/SignalR') and create an Issue at 
https://github.com/git-for-windows/git/issues ?

Thanks,

-Stolee


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2018-08-28 19:59 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-08-27 19:06 Git clean removing tracked files semi-regularly Brennan Conroy
2018-08-28  0:58 ` brian m. carlson
2018-08-28 18:29   ` Brennan Conroy
2018-08-28 19:59     ` Derrick Stolee

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).