Migrating Redmine Source To Git

Added by Jim Mulholland over 9 years ago

I wanted to break out the migrating the Redmine source from SVN to Git into its own thread so it was easier to find.

I agree that migrating Redmine source to Git (especially GitHub) would be a big win.
  • Git is superior to SVN in several areas (speed, distributed, easier branching / merging, etc)
  • I just got back from RailsConf, and Git is definitely turning into the defacto standard among Rails apps
  • GitHub is becoming the defacto standard Git hosting repo. (They had some pretty cool "Fork You" t-shirts at the conference.) I think migrating to GitHub by itself will increase Redmine community involvement.

Here is a good blog post on migrating from SVN to Git and keeping commit history with user info.

http://www.simplisticcomplexity.com/2008/03/05/cleanly-migrate-your-subversion-repository-to-a-git-repository/

I am also pasting Simone's last post on Git info below.

- Jim

RE: Dealing with Version/Releases in Redmine - Added by Simone Carletti about 6 hours ago

I've just started the migration and will post some more details about it once it's ready.

Great!
However if the main repos it not GIT powered it would always be a pain to submit patches.
I'm really addicted to git-svn tool, but its not so powerful. ;)

I've just started the migration and will post some more details about it once it's ready.

It would be nice to hear his feedback, at least about the overall idea we're talking about in this topic.

As a long time svn user, all this talk about git has me intrigued ... is there a good link for svn users to see what git is all about and maybe why we'd want to consider using it over svn?

I would suggest, in order

  1. http://peepcode.com/products/git A wonderful screencast
  2. http://wiki.sourcemage.org/Git_Guide (an excellent quick reference)
  3. An example usage http://drnicwilliams.com/2008/02/03/using-git-within-a-team/
  4. Git for SVN users: http://git.or.cz/course/svn.html

Replies (3)

RE: Migrating Redmine Source To Git - Added by Eric Davis over 9 years ago

Thanks for breaking the topic out.

Here is a good blog post on migrating from SVN to Git and keeping commit history with user info. http://www.simplisticcomplexity.com/2008/03/05/cleanly-migrate-your-subversion-repository-to-a-git-repository/

I've used that to help migrate my svn repositories many times but you have to be careful if the project isn't doing a full migration. The final clone will break the link to the svn repository so future svn updates will not work.

I have the migration pushed to GitHub now but I still need to do some tweaking and checking. Mainly, I want to automate the process so GitHub stays in sync with the svn trunk. Feel free to clone to fork but the repository might change at any time.

On the subject of links, my delicious page has a few I've used to learn git.

Eric

RE: Migrating Redmine Source To Git - Added by Thomas Lecavelier over 9 years ago

Erk! I was working on such a switch too ^^;

There's a dozen of redmine pseudo-fork on github, and a true master copy is needed. If you need help, I can spend some moments with you on that work.

RE: Migrating Redmine Source To Git - Added by Simone Carletti over 9 years ago

I've used that to help migrate my svn repositories many times but you have to be careful if the project isn't doing a full migration. The final clone will break the link to the svn repository so future svn updates will not work.

Eric, could you please show me an example?
I migrated more than 20 repos. A couple of them are really huge (I use git to contribute to Zend Framework development) but I never noticed any issue.

I would be more than happy to be aware of those issues to be sure to avoid them in the future. :)

(1-3/3)