Subversion diff and patch

Store the (versioned!!) local changes of your working tree to a file localchanges.diff in your home directory:

svn diff > ~/localchanges.diff

Restore the changes back to your tree:

patch -p0 -i ~/localchanges.diff

Thursday, March 3rd, 2011 Linux, Versioning

Leave a Reply

*