Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

From SVN to GIT and back again

Tags:

git

svn

We are working on a project where we are required to use Subversion as our version control system. We are all comfortable with it, but, on the holidays we would like to go out of town to focus on development. The problem is, there is a high probability not to have internet access where we're going. Since we still want to maintain code history, I was thinking if there was a way to export our current Subversion history to a git repository and then export our git history to the existing Subversion repo (this repo already has history on it).

Is there a way to do that?

Thanks!

like image 273
Ian Avatar asked Jul 11 '10 17:07

Ian


People also ask

Can I use Git and SVN at the same time?

git works perfectly fine with a svn repository on the other side, why not benefit from that? Certainly possible, and a fair move towards your colleagues, not to push unfinished changes. however there is one huge danger hidden in there: you will tend to make very few commits to the companies repository.

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.


1 Answers

First Rule of Git: if you can think of it, Git can do it. Have a look at git-svn.

like image 181
Thomas Avatar answered Oct 03 '22 13:10

Thomas