Skip to content

Instantly share code, notes, and snippets.

@verticalgrain
Last active October 27, 2017 20:55
Show Gist options
  • Save verticalgrain/e1412be778d80c66bab61188b702932c to your computer and use it in GitHub Desktop.
Save verticalgrain/e1412be778d80c66bab61188b702932c to your computer and use it in GitHub Desktop.
SVN Cheatsheet
// Clone an SVN repo
svn co https://repourl
// Info
svn info
// Update / pull
svn up
// Stat (status)
svn stat
// Diff
svn diff
svn diff assets/css/styles.css
// Add new files
svn add assets/filename.css
svn add assets/filename1.css assets/filename2.css
// Remove files
svn delete assets/filename.css
// Commit + push
svn commit
svn commit -m "Commit message"
// To abort an SVN up:
ctrl + C
// Some magic that does some stuff:
svn revert -R .
// Tell SVN to ignore a specific file or directory in the project (not globally):
// Ignore globally - edit ~/.subversion/config
// File:
svn propset svn:ignore whatnot.txt .
// Directory:
svn propset svn:ignore bin .
// View last 10 SVN commits
// (use svn info to get svn url)
svn log -l10 -v [SVNURL]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment