{"thread":{"id":"49226","subject":"Git clean removing tracked files semi-regularly","startedAt":"2018-08-27T19:07:04Z","lastAt":"2018-08-28T19:59:46Z","messageCount":4,"participants":["Brennan Conroy","brian m. carlson","Derrick Stolee"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"356600","messageId":"MWHPR21MB0701CD1D9653E82116E482ECD60B0@MWHPR21MB0701.namprd21.prod.outlook.com","threadId":"49226","inReplyTo":null,"subject":"Git clean removing tracked files semi-regularly","fromName":"Brennan Conroy","fromEmail":"brecon@microsoft.com","sentAt":"2018-08-27T19:06:59Z","receivedAt":"2018-08-27T19:07:04Z","isPatch":false,"sender":{"key":"brecon@microsoft.com","avatar":null},"body":"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.\n\nThe 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 \n\nIf you need me to collect git logs etc. please don't hesitate to ask!\n\n"},{"id":"356644","messageId":"20180828005803.GB432229@genre.crustytoothpaste.net","threadId":"49226","inReplyTo":"MWHPR21MB0701CD1D9653E82116E482ECD60B0@MWHPR21MB0701.namprd21.prod.outlook.com","subject":"Re: Git clean removing tracked files semi-regularly","fromName":"brian m. carlson","fromEmail":"sandals@crustytoothpaste.net","sentAt":"2018-08-28T00:58:04Z","receivedAt":"2018-08-28T00:58:12Z","isPatch":false,"sender":{"key":"sandals@crustytoothpaste.net","avatar":"https://avatars.githubusercontent.com/u/497054?v=4"},"body":"On Mon, Aug 27, 2018 at 07:06:59PM +0000, Brennan Conroy wrote:\n> Hello, I work on a project that uses git. \"git clean -xdf\" is a common\n> command to run to clean up the environment, however sometimes this\n> command deletes the entire contents of two of the folders and all the\n> files it deletes are being tracked which according to the\n> documentation should not be deleted.\n> \n> 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\n> \n> If you need me to collect git logs etc. please don't hesitate to ask!\n\nIt would be helpful to know more about your environment.  Is this only\nreproducible on certain operating systems (e.g. case-insensitive ones)?\nWhat version of Git are you using?  What does \"git status\" say before\nyou run git clean?\n-- \nbrian m. carlson: Houston, Texas, US\nOpenPGP: https://keybase.io/bk2204\n"},{"id":"356714","messageId":"MWHPR21MB0701E9B53BC72CC33497AF45D60A0@MWHPR21MB0701.namprd21.prod.outlook.com","threadId":"49226","inReplyTo":"20180828005803.GB432229@genre.crustytoothpaste.net","subject":"RE: Git clean removing tracked files semi-regularly","fromName":"Brennan Conroy","fromEmail":"brecon@microsoft.com","sentAt":"2018-08-28T18:29:55Z","receivedAt":"2018-08-28T18:31:40Z","isPatch":false,"sender":{"key":"brecon@microsoft.com","avatar":null},"body":"I'm using windows. Have had it happen on 8.1 and 10.\n\n\"git status\" shows \"nothing to commit, working tree clean\". I am using git version 2.17.1.windows.2\n\n-----Original Message-----\nFrom: brian m. carlson <sandals@crustytoothpaste.net> \nSent: Monday, August 27, 2018 5:58 PM\nTo: Brennan Conroy <brecon@microsoft.com>\nCc: git@vger.kernel.org\nSubject: Re: Git clean removing tracked files semi-regularly\n\nOn Mon, Aug 27, 2018 at 07:06:59PM +0000, Brennan Conroy wrote:\n> Hello, I work on a project that uses git. \"git clean -xdf\" is a common \n> command to run to clean up the environment, however sometimes this \n> command deletes the entire contents of two of the folders and all the \n> files it deletes are being tracked which according to the \n> documentation should not be deleted.\n> \n> The project is located at https://github.com/aspnet/SignalR and the \n> two folders it likes to delete are \n> https://github.com/aspnet/SignalR/tree/release/2.2/clients/ts/signalr-\n> protocol-msgpack and \n> https://github.com/aspnet/SignalR/tree/release/2.2/clients/ts/signalr\n> \n> If you need me to collect git logs etc. please don't hesitate to ask!\n\nIt would be helpful to know more about your environment.  Is this only reproducible on certain operating systems (e.g. case-insensitive ones)?\nWhat version of Git are you using?  What does \"git status\" say before you run git clean?\n--\nbrian m. carlson: Houston, Texas, US\nOpenPGP: https://keybase.io/bk2204\n"},{"id":"356729","messageId":"8ed02573-3356-9d38-c1ae-f5a2c82693c6@gmail.com","threadId":"49226","inReplyTo":"MWHPR21MB0701E9B53BC72CC33497AF45D60A0@MWHPR21MB0701.namprd21.prod.outlook.com","subject":"Re: Git clean removing tracked files semi-regularly","fromName":"Derrick Stolee","fromEmail":"stolee@gmail.com","sentAt":"2018-08-28T19:59:44Z","receivedAt":"2018-08-28T19:59:46Z","isPatch":false,"sender":{"key":"stolee@gmail.com","avatar":"https://avatars.githubusercontent.com/u/570044?v=4"},"body":"On 8/28/2018 2:29 PM, Brennan Conroy wrote:\n> I'm using windows. Have had it happen on 8.1 and 10.\n>\n> \"git status\" shows \"nothing to commit, working tree clean\". I am using git version 2.17.1.windows.2\n\nI tested on my machine and could not reproduce this issue. Could you \nfind a full repro (first command 'git clone \nhttps://github.com/aspnet/SignalR') and create an Issue at \nhttps://github.com/git-for-windows/git/issues ?\n\nThanks,\n\n-Stolee\n\n"}]}