Skip to content

Instantly share code, notes, and snippets.

@davidchase
Created March 22, 2013 15:56
Show Gist options
  • Save davidchase/5222399 to your computer and use it in GitHub Desktop.
Save davidchase/5222399 to your computer and use it in GitHub Desktop.
Committing only modified files in svn.. I use this to avoid committing .DS_Store files and it comes in handy a few times. Using sed and xargs.
Filename without spaces:
svn st | sed -n 's/^M//p' | xargs svn commit -m "modified"
Filename with spaces:
svn st | sed -n 's/$/"/; s/^M */"/p' | xargs svn commit -m "modified"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment