{"thread":{"id":"24417","subject":"git clean -X behaviour when .gitignore has sub-directory entries","startedAt":"2010-07-16T19:05:45Z","lastAt":"2010-07-16T19:05:45Z","messageCount":1,"participants":["Jean-Philippe Gariépy"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"145702","messageId":"4C40AD89.1070005@nuecho.com","threadId":"24417","inReplyTo":null,"subject":"git clean -X behaviour when .gitignore has sub-directory entries","fromName":"Jean-Philippe Gariépy","fromEmail":"jean-philippe.gariepy@nuecho.com","sentAt":"2010-07-16T19:05:45Z","receivedAt":"2010-07-16T19:05:45Z","isPatch":false,"sender":{"key":"jean-philippe.gariepy@nuecho.com","avatar":"https://gravatar.com/avatar/a2b619b19cbd998aee61f61aabcccbfe7775e0862e0bd61e3cef4e2eb8c65563?d=mp&s=160"},"body":"Hi,\n\nWhen using sub-directory entries in .gitignore, \"git clean -X\" doesn't \nclean the ignored sub-directory.\n\n$ git init test\nInitialized empty Git repository in /home/jpgariep/git/test/.git/\n$ cd test/\n$ mkdir -p a/b/c\n$ touch a/b/c/test\n$ echo '/a/b/' > .gitignore\n$ git add .gitignore\n$ git commit -m \"Added .gitignore.\"\n[master (root-commit) 94e2825] Added .gitignore.\n  1 files changed, 1 insertions(+), 0 deletions(-)\n  create mode 100644 .gitignore\n$ git status\n# On branch master\nnothing to commit (working directory clean)\n$ git clean -X -d -f\n$ ls a\nb\n\nWhy is b still there?\n\n\nThanks.\n\n-- \nJean-Philippe Gariépy\n"}]}