Git clean removing tracked files semi-regularly
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!
Re: Git clean removing tracked files semi-regularly
On Mon, Aug 27, 2018 at 07:06:59PM +, 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 signature.asc Description: PGP signature
RE: Git clean removing tracked files semi-regularly
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 Sent: Monday, August 27, 2018 5:58 PM To: Brennan Conroy Cc: git@vger.kernel.org Subject: Re: Git clean removing tracked files semi-regularly On Mon, Aug 27, 2018 at 07:06:59PM +, 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
Re: Git clean removing tracked files semi-regularly
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