Last active
August 29, 2015 14:03
-
-
Save arielallon/7f73308668a27b6f775d to your computer and use it in GitHub Desktop.
SVN add (and rm) all new files (e.g. from a merge)
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 status | grep "^\?" | awk '{print $2}' | xargs svn add; | |
svn status | grep "^\!" | awk '{print $2}' | xargs svn rm; |
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
# tars up the files/dirs that are not in svn so you can rm the svn'd dir and then untar them back in | |
svn status | grep "^\?" | awk '{print $2}' | tar cvzf ../notsvn.tar.gz -T - |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
do you have something that auto generates the diff and applies it? that would be awesome