On Mon, Nov 2, 2020 at 2:46 PM David Besen <dbesen@xxxxxxxxx> wrote: > > 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. Is this the same issue as reported at https://lore.kernel.org/git/4F1384AE.1050209@xxxxxxxxxxxx/?