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
3
votes
2 answers

Make linear master branch git

I have imported my SVN repository into new git bare repository. My tags are converted in git tags but i have this git road lines : Is there a method to bring everything back to a single line in the master ? Like this : (I am beginner with…
barbuslex
  • 340
  • 3
  • 14
3
votes
3 answers

git2svn unable to create symlink (File name too long)

I installed svn2git to quickly convert SVN repositories to GIT. I tried the converting procedure on a different machine (Ubuntu 16.04) and a different SVN repository which worked without a problem. Right now I am on Linux Mint Cinnamon with a…
Jan Richter
  • 1,976
  • 4
  • 29
  • 49
3
votes
0 answers

Found an issue while migrating from Subverison to git invalid XML at /mingw64/share/perl5/site_perl/Git/SVN/Ra.pm line 308

I am migrating svn respository which have 63000revisions into git. In the process of migration I found below the issue and using SVN2GIT plugin for migration in windows machine. XML data was not well-formed: The XML response contains invalid XML at…
Nanda
  • 115
  • 1
  • 11
3
votes
1 answer

Is it possible to convert an SVN branch into a new GIT repo?

Our organization never used Trunk, and simply created new SVN branches for each version. Is it possible to simply select the most recent branch, and create a new Git repo of that branch (with history)?
2
votes
0 answers

Filesystem is corrupt: Corrupt representation Malformed representation header

want to migrate my projects from svn to gitlab using svn2git. all projects migrate successfully except one of them. when I execute svn2git command give me this error: Filesystem is corrupt: Corrupt representation Malformed representation…
saya
  • 21
  • 1
2
votes
0 answers

I'm getting an empty test directory after migrating the trunk from svn to git using svn2git

I'm in the middle of migrating a trunk from svn repo to git repo. I'm using svn2git tool for this migration. I have created a copy of trunk in another svn location and I have executed the following command for this. svn2git http://url/to/repo/…
u_u-de
  • 103
  • 9
2
votes
1 answer

SVN to Git migration using svn2git

Can I use svn2git to migrate only trunk and maintain history as well? If yes, how do I proceed with it. I tried with something like this : svn2git repoPath/trunk --authors authors.txt Do I need some additional parmas as well? It throws an error…
Nikhil Khurana
  • 422
  • 1
  • 5
  • 12
2
votes
2 answers

"git pull master" into a sub-directory

Background: I'm trying to move a package from an SVN repo to a GIT repo, while preserving it's history. Steps: I've used git-svn to generate a GIT repository for the SVN one. I'm following the steps mentioned here to move the code from one GIT…
Shyam Sunder
  • 1,200
  • 2
  • 11
  • 23
2
votes
1 answer

Migration from SVN to GIT

I migrate from SVN to GIT this way git svn init https://svn... git svn fetch Can I change the commit for migration, instead of "Commit to SVN" in GIT was "Revision number in SVN - Commit to SVN" For example 541 - Init module ABC
LeshaRB
  • 1,345
  • 2
  • 23
  • 44
2
votes
1 answer

SVN to Git with History?

For years, we have used SVN for our repository, and we want to migrate to Git. In 2015 someone made a change in one of our repositories. He made a separate folder in the repository (with an subfolder), on the same folder hierarchical level like…
ThinkmanTP
  • 33
  • 1
  • 3
2
votes
2 answers

svn2git hangs and outputs nothing

I am trying to convert some old svn repros to git using svn2git under Windows. I execute the following command from my git bash svn2git https://repo.example.com/repos/my_repro --username user --notags --authors ~/authors.txt --verbose But nothing…
sigy
  • 2,408
  • 1
  • 24
  • 55
2
votes
1 answer

git svn clone fatal error

I'm trying to migrate svn repository to git. I'm getting the following error: fatal: .git\svn\refs\remotes\https;C:\Program Files\Git\index: index file open failed: Invalid argument (in cleanup) update-index -z --index-info: command returned error:…
praneethh
  • 263
  • 4
  • 16
2
votes
2 answers

Svn2git: Add revision number to git commit title

I want to add the svn revision to every git commit title, so can I can see every Revision in each commit in the history of our Team Foundation Server. I already tried editing a commit with "--amend", but this way it just makes a new commit (and the…
Tee-Ay
  • 21
  • 4
2
votes
0 answers

Unable to ignore path while migrating svn to git

I am looking foward to migrate my code from SVN to Git using svn2git. Below is my SVN path ${SVN_PATH}/branches ${SVN_PATH}/tags ${SVN_PATH}/trunk/EAR/EARjar1 ${SVN_PATH}/trunk/EAR/EARjar1 ${SVN_PATH}/trunk/EJS/EJSjar1 …
user1993412
  • 802
  • 2
  • 15
  • 29
2
votes
1 answer

Importing read-only Subversion to Git blocked by "Read access denied for root of edit"

I am trying to import code from a semi-public Subversion repository into my own Git repo. The Subversion repo access is explained here (enable JavaScript to read; look under the "[Download]" link). I have tried to use git svn clone manually as well…
L2G
  • 846
  • 6
  • 28
1
2
3
8 9