Last active
October 3, 2016 10:12
-
-
Save Fintan/6dae0577a862b4af085344a07246ff02 to your computer and use it in GitHub Desktop.
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
| To use alternate credentials for a single operation, use the --username and --password switches for svn. | |
| To clear previously-saved credentials, delete ~/.subversion/auth. You'll be prompted for credentials the next time they're needed. | |
| These settings are saved in the user's home directory, so if you're using a shared account on "this laptop", be careful - if you allow the client to save your credentials, someone can impersonate you. The first option I provided is the better way to go in this case. At least until you stop using shared accounts on computers, which you shouldn't be doing. | |
| To change credentials you need to do: | |
| rm -rf ~/.subversion/auth | |
| svn up ( it'll ask you for new username & password ) | |
| (http://stackoverflow.com/questions/19905716/how-change-default-svn-username-and-password-to-commit-changes) |
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
| //generate a log file | |
| svn log --verbose -r 57296 > tmp.txt | |
| //todo: format tmp.txt | |
| //remove files that were added in a previous commit | |
| for f in $(cat tmp.txt) ; do svn delete $(echo $f | tr -d '\r').json; done | |
| ///////////////// | |
| //misc | |
| //clear working svn directory | |
| svn status --no-ignore | grep -E '(^\?)|(^\I)' | sed -e 's/^. *//' | sed -e 's/\(.*\)/"\1"/' | xargs rm -rf | |
| //list authors of last x commits | |
| svn log --quiet -l 30 | grep "^r" | awk '{print $3}' | sort | uniq | |
| //log commits by author called blankman | |
| svn log | sed -n '/blankman/,/-----$/ p' | |
| //log commits between a date range | |
| svn log -r{2008-9-23}:{2008-9-24} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment