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
vote
1 answer

git svn clone fails when called with --preserve-empty-dirs argument

I'm migrating our SVN to Git. Our Jenkins job expects a specific folder, which in some branches can be empty. Thus, I have provided the --preserve-empty-dirs argument to the git svn clone --preserve-empty-dirs --prefix "" .... Unfortunately this…
ilhami visne
  • 305
  • 5
  • 13
1
vote
1 answer

What do @backups branches/tags mean in converted svn2git git repository

After converting a SVN repository from SVN to git, I see tags with names like: backups/PM_4_2_11@204843 This tag was not in the original SVN repository. Does anyone know what it means?
eeijlar
  • 1,232
  • 3
  • 20
  • 53
1
vote
1 answer

Is git svn clone still performing work?

I'm running 'git svn clone' on a non-standard repository and it appears stuck somewhere in the process. It did perform work on locating all of the branches and tags but when getting to a certain revision it has stopped outputting anything and has…
binarylegit
  • 319
  • 1
  • 4
  • 15
1
vote
1 answer

Git: ERROR: Unable to determine version

I'm trying to convert some svn-repo's to git (Atlassian Stash) using this tutorial of Atlassian itself. When I run the command java -jar svn-migration-scripts.jar verify I get following result: svn-migration-scripts: using version 0.1.56bbc7f Git:…
Maarten Meeusen
  • 482
  • 1
  • 9
  • 23
1
vote
1 answer

svn2git migration error command failed: git checkout -f master

I have a project structure in following format. It is located at https://ip/svn/siguard/DSA/ branches/ docs/ tags/ trunk/ I have installed svn2 git and make all installations. I want to run migration process with following command svn2git…
user725455
  • 465
  • 10
  • 36
1
vote
0 answers

nirvdrum svn2git fetch from interrupted clone

I am using the below svn2git tool to migrate the repo. I have initiated the clone process and got interrupted due to network connectivity. svn2git svn://repo/repo-name --tags tags --trunk trunk --branches branches --authors…
notionquest
  • 37,595
  • 6
  • 111
  • 105
1
vote
2 answers

svn2git - do all authors in SVN need to be created in Git ahead of time?

I'm looking at svn2git to do some conversions, but am confused about one thing. We have a number of people in our SVN repo history, who made changes and committed code, who are not here anymore. Do I need to create their accounts in Git, even though…
CargoMeister
  • 4,199
  • 6
  • 27
  • 44
1
vote
1 answer

Migrating from SVN to Git with large history

I'm trying to migrate a large project from SVN to Git. It's a +15 years old project and it has a large history. We are using the svn2git Ruby tool, but can't push to the repo because the history file is +1GB, therefore get an error message. Is it…
riteshg
  • 21
  • 7
1
vote
1 answer

svn2git migration: Rules

So I have decided to use the svn2git tool after a solid recommendation. In order to migrate the repository, I need authors file and the rules file, along with the repository itself. I composed all these three, and put them under a directory, which I…
user4964330
1
vote
2 answers

Using expect to migrate multiple repositories

I have multiple repositories , which I want to convert to git from svn. I try to write a simple expect script that convert one repo. #!/usr/bin/expect spawn svn2git svn://svn-server/repo --username $username --verbose expect {Password for…
1
vote
0 answers

Unable to complete svn2git in a shell script

I am migrating a SVN codebase to Git and need to create more than 30 projects. Hence I approached this problem by automating the steps in a shell script. Below is the code snippet test.sh #!/bin/sh svn2git…
Praveen
  • 11
  • 2
1
vote
1 answer

Drop history older than x on cvs2git Migration

we plan to migrate one of our last big CVS repositories in a Git repository. For migration we are using svn2git's cvs2git. Because this CVS repository has grown over ~ 12 years, it has 31GB of data. I couldn't find any solution to drop all history…
BlackEye
  • 775
  • 11
  • 25
1
vote
2 answers

Please suggest another fastest way for Migrating SVN repository to GIT respository

Downloaded the Ruby Installer for Windows and installed the latest version with Add Ruby executable to your path. Installed svn2git. Start menu ->All programs -> Ruby -> Start command prompt with ruby Then type “gem install svn2git” and…
Nanda
  • 115
  • 1
  • 11
1
vote
1 answer

Why svn2git causes loop to break in bash script?

I am trying to migrate some modules from SVN to GIT using svn2git. I have a list of modules in .csv file like…
1
vote
2 answers

How to exclude certain branches with svn2git?

I am running svn2git on Windows and would like to exclude a number of branches from the migration process. How is this achieved?
Jacob
  • 619
  • 1
  • 7
  • 18
1 2 3
8 9