Monday, August 27, 2012

SVN - Display modified files only and revert

To display only the  modified files we need to use svn st with grep:
svn st | grep 'M '

now to revert only all those modified, we can do this
svn st | grep ' M' | awk '{print $2}' | xargs svn revert

you can also use this to delete or move those file by simply changing the last  arguments


No comments:

Post a Comment