Questions tagged [svn2git]

There are multiple utilities called svn2git that do the same task, transforming an SVN repository into one or multiple Git repositories. This tag can be used for any of them.

The KDE svn2git utility is probably the most sophisticated, most flexible and fastest tool amongst the ones called svn2git.

It is fed with a set of rules that define how the SVN content should be transformed into one or even multiple Git repositories or combine different SVN repositories in one SVN location into one Git repository.

It is often used in conjunction with svneverever to easily analyze the history of a repository and its committers to aid in setting up a rules file if the history of the repository was not straightforward.


Another svn2git utility available is the one of nirvdrum which uses git-svn for importing the SVN repository and then does some post-processing which is in total extremely time consuming and produces sometimes a bit of a borked history or missies the history from some point on.

132 questions
-1
votes
2 answers

migrating svn to git and checking in to git with revision on svn

I have done migrating my repos from SVN to GIT. Now developers have few changes on SVN repo. I need those changes alone to be checked in GIT by me. After cutover, I will have developers check in to GIT going. How this can be accomplished using the…
-1
votes
1 answer

git svn -r does not fetches the SVN repo till that revision

I want to migrate a folder in SVN to GIT with full commit history. However, the folder was deleted prior to migration. In this case, I thought of cloning the revision of the project that still had the folder intact. For this, I tried git svn clone…
dgupta3091
  • 1,067
  • 1
  • 7
  • 18
-1
votes
1 answer

Converting SVN repo to Git alternative method

Can I convert a SVN repo to Git in the following method (asking this as an alternative to svn2git program or git-svn command): Export the folder/SVN content. CD into the top level folder and initialize a git repository using git init. Somehow…
Idris.AH
  • 410
  • 1
  • 10
  • 22
-1
votes
1 answer

svn2git kde rules errors - converting tags

I am using svn2git all fast export and I am getting the following error: - I had my rules for tags along these lines: match /(/Source//[^/]+/)tags/ repository repo prefix \1 branch refs/tags/\2 end match How can I correct…
Idris.AH
  • 410
  • 1
  • 10
  • 22
-1
votes
1 answer

Issues converting a svn to a git

I need to remove a svn server in order to replace it with a tfs 2018 server. If it would go my way we would just take the files but apparently people still want to be able to see the history and the previous check-ins. We decided to create two…
Dev86
  • 91
  • 9
-1
votes
1 answer

svn2git migration from a specific starting date

I'm using svn2git to convert a large (7 years old) project from SVN to Git, but i want to convert only the last 3 years starting from (01-01-2014). running command: svn2git $SVN_URL --revision {"2014-01-01 00:00"} --verbose --no-minimize-url…
Gimbo
  • 307
  • 3
  • 10
-1
votes
1 answer

How can I migrate this project from SVN to GIT in this simple situation?

I have the following doubt related how to migrate from SVN to GIT in this specific situation. Untill now we are using SVN as version control system. Now we have are switching to GIT. So in this moment I only have to put on GIT a single projet that…
AndreaNobili
  • 40,955
  • 107
  • 324
  • 596
-1
votes
1 answer

Converting SVN repo to git

I have a pretty large svn repository with a structure similar to below. I have multiple repositories/projects within one big project. I have been setting up svn2git to transfer svn to git, but it seems like I have to do each single project one by…
j1nrg
  • 116
  • 14
-1
votes
1 answer

Git migration: copy commits from one repo to an another including merge commits and preserve history

Our project recently(~4 months ago), moved from SVN to git. Our initial migration was done by a guy, who had basic git knowledge. Our git repo is a bit chaotic now(there is a commit where 1million file was deleted, the diff is like 25G). I would…
Gwelican
  • 11
  • 1
-1
votes
1 answer

SVN to git migration only creates .git folder

I am trying to migrate from svn to git. I tried doing so using the following tools git-svn svn2git However both tools only created a .git folder, without checked out files and folders (speaks a working copy). With git-svn I tried to execute the…
Smrita
  • 1,259
  • 3
  • 18
  • 38
-2
votes
1 answer

SVN to git migration: How to add branches from SVN to migrated git (Gerrit)

I have already migrated a SVN repo to git and added it to a Gerrit project. My problem is that the SVN repo has multiple branches. How to do I migrate the branches and add them to an existing Gerrit project? Thanks in advance!
Jomark
  • 31
  • 8
-2
votes
3 answers

How do I use svneverever?

I have a dump file (Your_dumpfile.dmp) and I am trying to use svneverever to check the format of the repository to help write rules for svn2git. Svneverever sounds like a great tool, however, there isn't really any good documentation on how to use…
Idris.AH
  • 410
  • 1
  • 10
  • 22
1 2 3
8
9