Skip to content

Instantly share code, notes, and snippets.

@nikolazic
Forked from arielallon/svnadd.sh
Created August 20, 2014 19:45
Show Gist options
  • Save nikolazic/04fafa3609f0fc639045 to your computer and use it in GitHub Desktop.
Save nikolazic/04fafa3609f0fc639045 to your computer and use it in GitHub Desktop.
svn status | grep "^\?" | grep -v ".idea" | awk '{print $2}' | xargs svn add;
svn status | grep "^\!" | awk '{print $2}' | xargs svn rm;
# 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