Skip to content

Instantly share code, notes, and snippets.

@rubiii
Created June 9, 2010 21:00
Show Gist options
  • Save rubiii/432161 to your computer and use it in GitHub Desktop.
Save rubiii/432161 to your computer and use it in GitHub Desktop.
GIT/SVN:
add all new files (recursively):
git: svn add .
svn: svn status | grep "^\?" | awk '{print $2}' | xargs svn add
remove all deleted files (recursively):
git: svn add -u
svn: svn status | grep '^\!' | sed 's/! *//' | xargs -I% svn rm %
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment