Sometimes I print bzr addand don’t notice that I’m not in the root of the branch, but in the ignored subfolder. Then he adds all the files to these folders - often this is a build folder with a lot of files. Hence the question: how to cancel bzr add.
bzr add
There is a built-in way without the need for xargs: bzr remove --new --keep
bzr remove --new --keep
This answer is shamelessly stolen from here to make it more accessible (for me too).
This will cancel the erroneous bzr add:
bzr added -0 | xargs -0 bzr rm --keep