git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* git clean -Xdf doesn't clean ignored files in subfolders
@ 2020-11-02 22:44 David Besen
  2020-11-03 17:11 ` Elijah Newren
  0 siblings, 1 reply; 4+ messages in thread
From: David Besen @ 2020-11-02 22:44 UTC (permalink / raw)
  To: git

Hi!

I'm seeing some unexpected behavior with git clean:

git init test
cd test
echo "ignored.txt" > .gitignore
mkdir folder
touch folder/ignored.txt
git clean -Xdf

I'd expect this to delete folder/ignored.txt, and instead it doesn't.
I'm in git 2.29.2 on osx.

I saw that git clean -xdn does delete the file, so if this is a bug
it's limited to -X.

Thanks!
Dave

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-11-03 19:14 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-02 22:44 git clean -Xdf doesn't clean ignored files in subfolders David Besen
2020-11-03 17:11 ` Elijah Newren
2020-11-03 18:34   ` David Besen
2020-11-03 19:14     ` Elijah Newren

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).