Created
May 10, 2012 09:30
-
-
Save marcocaboni/2652116 to your computer and use it in GitHub Desktop.
Svn tips
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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