JJB Blog

Posts Tagged ‘svn’

One-liner for deleting all unknown files from an SVN working copy

Have an SVN working copy that looks like this? [code] $ svn status ? projectname.tmproj ? svncommitconflict.tmp ? app/controllers/unneedefile_controller.rb ? app/views/notneeded ? tmp/sessions/ruby_sess.be20aac7aff763cf ? doc/all X vendor/rails $ [/code] Clean it up with this!! [code] $ svn status | grep '^?' | cut -c 8- | xargs -d '\n' rm -rvf $ svn status X [...]

After →