This guide will demonstrate how to mirror SVN commits over to GIT. Work in progress...
First off, I'll give some credits. I've lifed all this information from various placed on the web.
- http://help.github.com/mac-set-up-git
- http://swik.net/Rails/Robby+on+Rails/git-svn+is+a+gateway+drug/cboew
# Clone an SVN repo with Git
git svn init -s http://svn.yourdomain.com/repos/project_name
cd project_name
# Fetch the SVN branches to the local Git repo
git svn fetch
# Once this is done, you’re local 'master' branch is linked to trunk/.
# Make a new branch for develop & check it out
git checkout -b develop
# Back to master.
git checkout master
# We'll change this to link local 'develop' branch to trunk
git reset --hard production
Where did you get the "production" branch from under the "Creating the Local Git Repository" section?