Skip to content

Instantly share code, notes, and snippets.

@laszlomiklosik
Created June 1, 2012 05:53
Show Gist options
  • Save laszlomiklosik/2849298 to your computer and use it in GitHub Desktop.
Save laszlomiklosik/2849298 to your computer and use it in GitHub Desktop.
Working with SVN pacthes
# create patch from diff between remote revisions
svn diff -r OLD:NEW > ~/changes_file.diff
# create patch from diff based on local changes
svn diff > ~/changes_file.diff
# apply a patch: -p0 makes sure that all files can be found correctly, -i specifies the input diff file
patch -p0 -i ~/changes_file.diff
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment