Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to use git-svn in Mac

I installed Git with svn in MacPorts by

sudo port install git-core +svn

I have tried to use git-svn unsuccessfully by

git svn egUrl

and

git-svn egUrl

How can you use Git-svn in Mac after MacPorts' installation?

like image 890
Léo Léopold Hertz 준영 Avatar asked Apr 21 '09 12:04

Léo Léopold Hertz 준영


2 Answers

You have to start by cloning a Svn repository into git. In my case, I use the following (my git-core is v1.6.x):

git svn clone https://myrepos.com/project -T trunk -b branches/*/* --prefix=svn/

The cloning may take a while, but once complete, you'll be able to interact with your new git repository using git commands and then pull/commit to svn using git svn rebase and git svn dcommit, respectively.

This is a bit high level and doesn't offer much detail, but hopefully it will at least get you started.

like image 166
Rob Wilkerson Avatar answered Oct 02 '22 18:10

Rob Wilkerson


Don’t forget to git init your directory before calling git svn init.

like image 20
Bombe Avatar answered Oct 02 '22 19:10

Bombe