Posts tagged: subversion

Subversion / SVN Urls

Subversion / SVN Urls

Example

svn+ssh:///DirectoryTree/To/Repository/Branch

Subversion => Git migration

To import a Subversion repository into a (new) Git repository

mkdir the_new_git_repo
cd the_new_git_repo
git svn init -t tags -b branches -T trunk the_old_repo_svn_url
git svn fetch

Generating (Subversion) patches

svn diff –diff-cmd /usr/local/bin/diff -x “-w -B -b -E -d -N -u” > ~/some.patch

Which can be applied with:

/usr/local/bin/patch -u -p 0 < ~/some.patch

SVN Diff and Patch

In $APP_ROOT under SVN Subversion control

svn diff > ../somename.patch

In $APP_ROOT

patch -p0 < ../somename.patch

WordPress Themes