{"thread":{"id":"13410","subject":"Removing from index","startedAt":"2008-05-07T08:06:01Z","lastAt":"2008-05-07T09:39:43Z","messageCount":4,"participants":["Ryan Taylor","Matthieu Moy","Jakub Narebski"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"76255","messageId":"4B58A837F454E14AA0453EDBADE96A62B5F3C9@mildred.leeds-art.ac.uk","threadId":"13410","inReplyTo":null,"subject":"Removing from index","fromName":"Ryan Taylor","fromEmail":"ryan.taylor@leeds-art.ac.uk","sentAt":"2008-05-07T08:06:01Z","receivedAt":"2008-05-07T08:06:01Z","isPatch":false,"sender":{"key":"ryan.taylor@leeds-art.ac.uk","avatar":null},"body":"Hi,\n\nI've been a bit daft and told git to track a logs folder on my live box.\nSo now I'm pushing and pulling log file between my live box and my dev\nbox.\n\nI've tried adding logs into my exclude file and also running the git rm\ncommand on *.log to remove them from the index but they're still being\ntracked?\n\nI'm new to git. Can anyone shed any light?\n\nCheers\n\nRyan\n"},{"id":"76259","messageId":"vpq4p9a8r57.fsf@bauges.imag.fr","threadId":"13410","inReplyTo":"4B58A837F454E14AA0453EDBADE96A62B5F3C9@mildred.leeds-art.ac.uk","subject":"Re: Removing from index","fromName":"Matthieu Moy","fromEmail":"matthieu.moy@imag.fr","sentAt":"2008-05-07T08:17:24Z","receivedAt":"2008-05-07T08:17:24Z","isPatch":false,"sender":{"key":"git@matthieu-moy.fr","avatar":"https://avatars.githubusercontent.com/u/14709?v=4"},"body":"\"Ryan Taylor\" <ryan.taylor@leeds-art.ac.uk> writes:\n\n> I've tried adding logs into my exclude file and also running the git rm\n> command on *.log to remove them from the index but they're still being\n> tracked?\n\nWhat does \"git status\" say after \"git rm *.log\"?\n\nAre you sure you didn't forget to commit after that?\n\n-- \nMatthieu\n"},{"id":"76260","messageId":"4B58A837F454E14AA0453EDBADE96A62B5F405@mildred.leeds-art.ac.uk","threadId":"13410","inReplyTo":"vpq4p9a8r57.fsf@bauges.imag.fr","subject":"RE: Removing from index","fromName":"Ryan Taylor","fromEmail":"ryan.taylor@leeds-art.ac.uk","sentAt":"2008-05-07T08:41:17Z","receivedAt":"2008-05-07T08:41:17Z","isPatch":false,"sender":{"key":"ryan.taylor@leeds-art.ac.uk","avatar":null},"body":"I do a rm then a commit. But then I keep getting modified logs in my git\nstatus?\n\n-----Original Message-----\nFrom: git-owner@vger.kernel.org [mailto:git-owner@vger.kernel.org] On\nBehalf Of Matthieu Moy\nSent: 07 May 2008 09:17\nTo: Ryan Taylor\nCc: git@vger.kernel.org\nSubject: Re: Removing from index\n\n\"Ryan Taylor\" <ryan.taylor@leeds-art.ac.uk> writes:\n\n> I've tried adding logs into my exclude file and also running the git\nrm\n> command on *.log to remove them from the index but they're still being\n> tracked?\n\nWhat does \"git status\" say after \"git rm *.log\"?\n\nAre you sure you didn't forget to commit after that?\n\n-- \nMatthieu\n"},{"id":"76267","messageId":"m3abj25u7e.fsf@localhost.localdomain","threadId":"13410","inReplyTo":"4B58A837F454E14AA0453EDBADE96A62B5F405@mildred.leeds-art.ac.uk","subject":"Re: Removing from index","fromName":"Jakub Narebski","fromEmail":"jnareb@gmail.com","sentAt":"2008-05-07T09:39:43Z","receivedAt":"2008-05-07T09:39:43Z","isPatch":false,"sender":{"key":"jnareb@gmail.com","avatar":"https://avatars.githubusercontent.com/u/2706?v=4"},"body":"Please do not toppost.\n\n\"Ryan Taylor\" <ryan.taylor@leeds-art.ac.uk> writes:\n> Matthieu Moy wrote\n>> \"Ryan Taylor\" <ryan.taylor@leeds-art.ac.uk> writes:\n>>> \n>>> I've tried adding logs into my exclude file and also running the\n>>> git rm command on *.log to remove them from the index but they're\n>>> still being tracked?\n>> \n>> What does \"git status\" say after \"git rm *.log\"?\n>> \n>> Are you sure you didn't forget to commit after that?\n>\n> I do a rm then a commit. But then I keep getting modified logs in my git\n> status?\n\nWhat are the names of the files you want to stop tracking?  What is\nthe entry in .gitignore or info/excludes file?  What was the sequence\nof commands to remove them?  What command did you try/use that\nreturned unexpected output?  What was that output, and what did you\nexpect?\n\n-- \nJakub Narebski\nPoland\nShadeHawk on #git\n"}]}