svn st |grep ^A |cut -c 9- |xargs svn revert
To check first which files will be canceled without changing anything, delete the last command:
svn st |grep ^A |cut -c 9-
Powerful trace commands:
svn st will install everythinggrep ^A will only give lines starting with the letter A to add.cut -c 9- will get the file name from these lines.xargs svn revert will run svn revert for each file name.
If you are on Windows, you will have to download the UnxUtils package or similar, but it's worth it in many powerful shell commands.
Anders abel
source share