git ls-files --others --exclude-standard | xargs rm
To use it as git rmuntracked, add to ~/.gitconfig
[alias] rmuntracked = "!git ls-files --others --exclude-standard | xargs rm"
(as you can see in my dotfiles)
git ls-files --others --exclude-standard | xargs rm
To use it as git rmuntracked, add to ~/.gitconfig
[alias] rmuntracked = "!git ls-files --others --exclude-standard | xargs rm"
(as you can see in my dotfiles)
this worked really well thank you
Thanks man. was looking for exactly this