Skip to content

Instantly share code, notes, and snippets.

@marcusshepp
Last active June 2, 2016 14:54
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 marcusshepp/c9f060f9d68c4317d00f47d4ca9cef42 to your computer and use it in GitHub Desktop.
Save marcusshepp/c9f060f9d68c4317d00f47d4ca9cef42 to your computer and use it in GitHub Desktop.
SVN notes
# showing a diff num1:num2 is the commits that we're compairing.
svn diff -r 2748:2749 >> ~/Desktop/foo.txt
# finding something in the log (-B is how many lines before -A is how many lines after)
svn log | grep "4294" -B 3 -A 3
# blow away the changes to file(s)
svn revert *.txt
# update head
svn up
# committing
svn ci -m "foo" path/to/file path/to/another/file path/to/dir/
# commit a list of files from a file
svn ci -m "did a thing" --targets files_to_commit.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment