Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

pitfalls svn -> git migration [closed]

Tags:

git

svn

We are currently considering the option of migrating from svn to git for all the benefits that git offers. We are currently worried about losing history and looking into the issue. We would like to know if anyone had other problems when they migrated from svn to git.

like image 517
Sandah Aung Avatar asked Jan 26 '12 09:01

Sandah Aung


People also ask

Which migration is actually recommended for migration from SVN to Git?

When moving to Git from another version control system like Subversion (SVN), we generally recommend that you perform a "tip migration", which migrates just the latest version of the repository contents, without including history.

Which is Better Git or SVN?

SVN is better than Git for architecture performance, binary files, and usability. And it may be better for access control and auditability, based on your needs.

What is difference between SVN and Git?

The difference between Git and SVN version control systems is that Git is a distributed version control system, whereas SVN is a centralized version control system. Git uses multiple repositories including a centralized repository and server, as well as some local repositories.

Can you use Git and SVN together?

git-svn is a specialized tool for Git users to interact with Git repositories. It works by providing a Git frontend to an SVN backend. With git-svn, you use Git commands on the local repository, so it's just like using normal Git. However, behind the scenes, the relevant SVN commands are sent to the server.


1 Answers

There shouldn't be any problems converting from svn to git regarding losing history. That's the main purpose of revision control software anyway, to keep track of history.

The number one rule is of course: always back up your repositories before converting them and do several test runs until you feel confident enough to do it in a production environment.

A major difference is the way externals in Subversion behave compared to git submodules. See:

  • Why are git submodules incompatible with svn externals?
  • How do I adapt my svn:externals strategy to git submodules?
  • Git submodule tutorial

Also, expect to spend some time on supporting the users. Git is a different beast and some accustomed svn users can find that it is a bit unintuitive to use.

Edit: Git has built in support for importing and working with svn repositories, using git-svn.

like image 141
Sundae Avatar answered Sep 19 '22 04:09

Sundae