Our Blog

News, thoughts & useful links

Contact: Skype , email or call
+44 (0) 131 556 6818

A couple of useful SVN commands

October 12th, 2008 by The BCM Team

Here is a list of the SVN commands we find pretty useful:

  • Mark as “deleted” all files thats in the svn repo but missing on the disk:
    
    svn rm $( svn status | sed -e '/^!/!d' -e 's/^!//' )
    
  • Mark as “added” all files thats not in the svn repo but are on the disk:
    
    svn st|grep ^?|sed s/?//|xargs svn add $1
    

PS: You might want to consider adding commands above as aliases to save time typing or copy & pasting.



Comments are closed.