{"thread":{"id":"18144","subject":"How to ignore a modified file?","startedAt":"2009-03-05T08:44:19Z","lastAt":"2009-03-05T20:45:08Z","messageCount":3,"participants":["dealmaker","Sverre Rabbelier","Robin Rosenberg"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"107028","messageId":"1236242659559-2428157.post@n2.nabble.com","threadId":"18144","inReplyTo":null,"subject":"How to ignore a modified file?","fromName":"dealmaker","fromEmail":"vinkhc@gmail.com","sentAt":"2009-03-05T08:44:19Z","receivedAt":"2009-03-05T08:44:19Z","isPatch":false,"sender":{"key":"vinkhc@gmail.com","avatar":null},"body":"\nHi, \n  I run \"git status\", and I saw the a modified file in a directory.  I want\nto ignore all files in that directory.  I put the directory name into\n.gitignore, but it still shows as modified file.  Why?  How do I ignore the\ndirectory?\nThanks.\n-- \nView this message in context: http://n2.nabble.com/How-to-ignore-a-modified-file--tp2428157p2428157.html\nSent from the git mailing list archive at Nabble.com.\n"},{"id":"107029","messageId":"fabb9a1e0903050050r322f1c54q8fd704cecc126115@mail.gmail.com","threadId":"18144","inReplyTo":"1236242659559-2428157.post@n2.nabble.com","subject":"Re: How to ignore a modified file?","fromName":"Sverre Rabbelier","fromEmail":"srabbelier@gmail.com","sentAt":"2009-03-05T08:50:37Z","receivedAt":"2009-03-05T08:50:37Z","isPatch":false,"sender":{"key":"srabbelier@gmail.com","avatar":"https://avatars.githubusercontent.com/u/3098?v=4"},"body":"Heya,\n\nOn Thu, Mar 5, 2009 at 09:44, dealmaker <vinkhc@gmail.com> wrote:\n> [...] How do I ignore [a tracked] directory?\n\n$ git rm -rf --cached dirname && git commit -m \"Removed directory from git\"\n\nGit will tell you about changes to the contents of the directory until\nyou stop tracking it. --cached will prevent the folder from actually\nbeing removed from your harddisk.\n\n-- \nCheers,\n\nSverre Rabbelier\n"},{"id":"107098","messageId":"200903052145.08249.robin.rosenberg.lists@dewire.com","threadId":"18144","inReplyTo":"1236242659559-2428157.post@n2.nabble.com","subject":"Re: How to ignore a modified file?","fromName":"Robin Rosenberg","fromEmail":"robin.rosenberg.lists@dewire.com","sentAt":"2009-03-05T20:45:08Z","receivedAt":"2009-03-05T20:45:08Z","isPatch":false,"sender":{"key":"robin.rosenberg@dewire.com","avatar":"https://avatars.githubusercontent.com/u/46357?v=4"},"body":"torsdag 05 mars 2009 09:44:19 skrev dealmaker <vinkhc@gmail.com>:\n> \n> Hi, \n>   I run \"git status\", and I saw the a modified file in a directory.  I want\n> to ignore all files in that directory.  I put the directory name into\n> .gitignore, but it still shows as modified file.  Why?  How do I ignore the\n> directory?\n> Thanks.\n\ngit update-index --assume-unchanged <files...>\n\n-- robin\n"}]}