* BUG: sub-git files getting cleaned when using --exclude in the top git
@ 2018-06-22 1:09 Jehan Bing
0 siblings, 0 replies; only message in thread
From: Jehan Bing @ 2018-06-22 1:09 UTC (permalink / raw)
To: git
Hi,
I have a setup with tree of 250+ git repositories. Every now and then, I
want to clean everything except for files generated by my IDE. So for all
the git repos, I run git clean -dfx --exclude <ide file>. What happens
then is, if a sub-git as that file, all its files are deleted (except for
that ide file) instead of being skipped.
Here is a simplified setup:
git init a
cd a
git init b
touch b/1 b/2
Now, if I run (from a):
git clean -dfx
git says Skipping repository b/ and nothing is cleaned, as expected.
But if I run:
git clean -dfx -e 1
then there is no skipping message and b/2 is deleted even if it is a file
tracked by b.
I would expect b to still be skipped and left untouched.
Regards,
Jehan
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2018-06-22 1:09 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-06-22 1:09 BUG: sub-git files getting cleaned when using --exclude in the top git Jehan Bing
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).