Skip to content

Instantly share code, notes, and snippets.

@angus65
Last active January 2, 2016 15:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save angus65/8324320 to your computer and use it in GitHub Desktop.
Save angus65/8324320 to your computer and use it in GitHub Desktop.
Auto Commit of SVN Changes into SubVersion.
# Delete Missing Files
svn status | ? { $_ -match '^!\s+(.*)' } | % { svn rm $Matches[1] }
# Add New Files
svn status | ? { $_ -match '^\?\s+(.*)' } | % { svn add $Matches[1] }
# Remove Locks
svn cleanup
# Commit with a message.
svn commit -m "Night Automatic commit" --username <<SVN_USER_NAME>> --password <<SVN_PASSWORD>>
# Remove Locks
svn cleanup
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment