Created
December 2, 2014 14:12
-
-
Save stephanb/4831037aae26e92a3890 to your computer and use it in GitHub Desktop.
SVN: add all modified files; delete all removed files
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
svn rm $(svn status | grep "^\!" | cut -d " " -f 8) | |
svn add $(svn status | grep "^?" | cut -d " " -f 8) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If you're presented with a long list of modified and deleted files in your SVN repository, e.g. after a version update, you might find the commands above handy. They split all lines from
svn status
starting with!
or?
by single space characters (cut -d " "
) and pass the 8th field (-f 8
) tosvn rm
/svn add
.