Skip to content

Instantly share code, notes, and snippets.

@amiut
Created May 18, 2020 16:34
Show Gist options
  • Save amiut/c70c2fcde5d288b7f325848182a51ae4 to your computer and use it in GitHub Desktop.
Save amiut/c70c2fcde5d288b7f325848182a51ae4 to your computer and use it in GitHub Desktop.
# Delete missing files
svn status | ? { $_ -match '^!\s+(.*)' } | % { svn rm $Matches[1] }
# Added new files
svn status | ? { $_ -match '^\?\s+(.*)' } | % { svn add $Matches[1] }
# Commit repository
svn commit -m "This commit is done by a PowerShell bat"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment