svn revert cleanup

You have reverted an svn merge and you have a lot of files not tracked (with exclamation mark, basically)?
Clean it up:

svn status | awk '$1 == "?" {print $2}' | xargs -t -i rm -r {}

Again, knowing awk and xargs turn helpful!

comments powered by Disqus