nikita.mekh
nikita.mekh

Reputation: 21

SVN to GIT migration with branch history merging

One more "stupid" question about svn to git migration : ) I have one old svn repo with ~20 projects inside.

/
|-projectA
|-projectB
|-projectC
|....

I want to migrate only projectA with keeping all it's history. Sounds easy : ) But main problem is in structure and revision history inside projectA.

/
|-projectA
|       |-trunk
|       |-branches
|       |         |-version 1.0 
|       |         |-version 1.1
|       |         |-version 1.2
|       |-tags

Now we are going to upgrade all customers to version 1.2 and to migrate project to git. So what I want to migrate to GIT:

What I do not want to migrate:

Any ideas?

Upvotes: 2

Views: 139

Answers (1)

Adam Dymitruk
Adam Dymitruk

Reputation: 129782

Don't be tempted to get all of the commits migrated over. It's not worth the effort. Take the snapshots of each of the important tags, branches, etc. and commit them in git in a fashion that mirrors what was done in SVN.

Instead, keep the SVN history on a server, CD, DVD, etc so you can inspect things when you need to. You have just saved your sanity.

Upvotes: 2

Related Questions