06/05/2009

SourceForge.net: Migrating from SVN to GIT...

Ok, so after posting last week about how to move from CVS to GIT in sourceforge.net, I got this task of moving the libdc1394 svn project to GIT and here are some of the things that I did to get the job done.
  1. I went to find out where the repository is for the project (i.e. http://sourceforge.net/scm/?type=svn&group_id=8157.
  2. Then, since I already had the svn2git, I just did:
    /var/lib/gems/1.8/bin/svn2git https://PROJECTNAME.svn.sourceforge.net/svnroot/PROJECTNAME
  3. And then push the master:
    git remote add origin ssh://USERNAME@PROJECTNAME.git.sourceforge.net/gitroot/PROJECTNAME
    git config branch.master.remote origin
    git config branch.master.merge refs/heads/master
    git push origin master # etc...
    git push --tags # not to forget the tags...
  4. That's all folks... You can see the results for git:libdc1394...

No comments: