Re: git clean -Xdf doesn't clean ignored files in subfolders
- From
Elijah Newren <newren@gmail.com>
- Date
- Nov 3, 2020, 17:11 UTC
- Message-ID
- <CABPp-BEF2wqP+Cx5-6yq6cfQ1Pa+8iOXWR11DNBH02yh-D8oFg@mail.gmail.com>
- In-Reply-To
- <CAHqVHwt1QJjXCAbDD5ViZ1E_rD8u+H_XeJ=FOv4VFPTS8y3xjg@mail.gmail.com>
On Mon, Nov 2, 2020 at 2:46 PM David Besen <dbesen@gmail.com> wrote:
Show 17 quoted lines
> > 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@pcharlan.com/?