I have a bunch of unknown files in my Bazaar working tree that I no longer want. I can get a list of them using bzr stat
, but I'd like an easy way to get rid of them. (I'd expect an option for bzr revert
to do this, but I'm not finding one.)
I can always write a tiny script to parse the output of bzr stat
and rm
or mv
the unknowns, but I thought something might already exist.
I have Bazaar (bzr
) 1.13.1.
bzr clean-tree
will get rid of all unknown files in a working tree. It also has switches to remove ignored files, merges backups and other types of unwanted files. See bzr clean-tree --usage
for full details.
Edit to add: This is true for Bazaar 2.0.0, I'm not sure about 1.13
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With