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.
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.
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.
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.
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.
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:
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With