On Wed, Oct 09, 2024 at 07:48:14PM +0200, Patrice Dumas wrote: > 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...
It should be ok if run immediately after "git switch" as "git switch" does not work if there are pending changes.
