[wp-hackers] Switching from SVN

Ryan McCue lists at rotorised.com
Fri Dec 10 09:02:31 UTC 2010

Otto wrote:
> As opposed to the dirt simple process of applying a patch file.

Applying a patch in SVN:

    patch -p0 < some.diff

Merging someone else's code in with Git:

    git pull <repo url or name> <branch name, usually master>

Undoing that patch in SVN:

    svn -R revert *

Undoing the merge in Git:

    git reset --hard HEAD

Committing the patch in SVN:

    svn commit -m 'Some message, props xyz'

Committing* the patch in Git:

    git push

* Note: this isn't actually committing, as pulling someone else's repo
in will merge their commits.

Ryan McCue

More information about the wp-hackers mailing list