Subversion shortcuts

Here are some shortcuts I use on an almost daily basis that I constantly forget and then go re-read the blog post. I have taken them from an old post but added a new one:

Bulk add:

svn st | grep ^? | sed 's/? //' | xargs svn add

Bulk remove:

svn st | grep ^! | sed 's/! //' | xargs svn rm

Strip all .svn directories from project:

find . -name .svn -exec rm -rf {} \;

Edit the ignore file pattern list for the current directory with the specified command line editor (don’t forget the last dot!):

svn propedit --editor-cmd vi svn:ignore .

Check in (commit) local changes to repository with the supplied message:

svn ci -m 'the commit message you want to use'

  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • LinkedIn
  • Reddit
  • Slashdot
  • StumbleUpon
  • Technorati
  • Tumblr
  • Twitter

Leave a Reply