Skip to content

Instantly share code, notes, and snippets.

@marcocaboni
Created May 10, 2012 09:30
Show Gist options
  • Select an option

  • Save marcocaboni/2652116 to your computer and use it in GitHub Desktop.

Select an option

Save marcocaboni/2652116 to your computer and use it in GitHub Desktop.
Svn tips
# Remove files and dirs unknown to subversion
svn status | sed 's/?\s*//' | xargs rm -rf
# Find branch creation commit
svn log --stop-on-copy | tail
# Reverting to previous version
svn merge -r HEAD:<previous_version> .
# Reverting commits 123, 456, 789
svn merge -c -123,-456,-789 .
# Reverting all commits from 456 to 123 (included)
svn merge -r 456:122 .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment