Vinyll's blog

( Python, Javascript & Web stuff… )

Using git with SVN

We'll really go straight to the point and consider that you are familiar with the basic git commands.

The main idea is to use git when it can (for commit, logs and so on), and use "git svn" when it has to get connected to Subversion.

you'll see below each regular git command and it's translation in git SVN in code format.

Git+SVN basics

Retrieve an existing project

git clone git://server.com/repository.git

git svn svn://server.com.repository

Pull from server

git pull

git svn rebase

Commit to your local repo

git commit -am "my message"

Remains the same. Yes, you'll use git in its full power in this case !

Push to share your commits

git push

git svn dcommit

By vinyll on Jan. 26, 2012


Comments