On Tue, Oct 08, 2024 at 09:11:00PM +0100, Gavin Smith wrote: > > I've committed the change. > > One command that removes all untracked header files is: > > git status -u | grep '\.h$' | xargs rm
This is somewhat dangerous, though, as it removes .h in out of source build directories, and if there are some changes pending on a .h, the file appears in git status -u... -- Pat