Reaction Branch - Using git-svn

Overview

What’s quickly becoming the best thing about svn? Answer: git-svn. Let’s examine how to checkout svn repository for use under git.

Clone an svn Repository

Let’s clone trunk/ branches/ and tags/ from the Reaction project:

/usr/lib/git-core/git-svn clone http://code2.0beta.co.uk/reaction/svn/Reaction/0.001/ Reaction/

Using clone initializes a git repository and fetches the svn repository into it.

Note: On Ubuntu 9.04 the git-svn package installs the git-svn in a place, /usr/lib/git-core, that was not in my default PATH. One can just use git svn instead or put git-svn in PATH.

rebase - update or pull

This is (nearly) the equivalent of svn update or git pull. i.e. freshing up your workspace with any changes that are in HEAD.

git-svn rebase

dcommit - commit or push

In order to push your git commits to the svn repo use:

git-svn dcommit
My tags:
 
Popular tags:
 
Powered by MojoMojo