How to cancel bzr add

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.

+5
source share
2 answers

There is a built-in way without the need for xargs: bzr remove --new --keep

+11
source

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

0
source

All Articles