* git clean -X behaviour when .gitignore has sub-directory entries
@ 2010-07-16 19:05 Jean-Philippe Gariépy
0 siblings, 0 replies; only message in thread
From: Jean-Philippe Gariépy @ 2010-07-16 19:05 UTC (permalink / raw)
To: git
Hi,
When using sub-directory entries in .gitignore, "git clean -X" doesn't
clean the ignored sub-directory.
$ git init test
Initialized empty Git repository in /home/jpgariep/git/test/.git/
$ cd test/
$ mkdir -p a/b/c
$ touch a/b/c/test
$ echo '/a/b/' > .gitignore
$ git add .gitignore
$ git commit -m "Added .gitignore."
[master (root-commit) 94e2825] Added .gitignore.
1 files changed, 1 insertions(+), 0 deletions(-)
create mode 100644 .gitignore
$ git status
# On branch master
nothing to commit (working directory clean)
$ git clean -X -d -f
$ ls a
b
Why is b still there?
Thanks.
--
Jean-Philippe Gariépy
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2010-07-16 19:13 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-07-16 19:05 git clean -X behaviour when .gitignore has sub-directory entries Jean-Philippe Gariépy
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).