"Unable to create session Unable to connect to repo" when trying to port svn to git

I am trying to port a local svn repo to git. I followed the following steps in this post: How to transfer the SVN repository with history to the new Git repository?

In particular, this answer (seemed the simplest). The problem is that whenever I try to extract from my svn repo, I keep getting:

Unable to create session: unable to connect to repository in file URL: /// mypathtorepo

My repo is currently located on my local computer, so I use the path to the directory "file: ///". I also tried "svn: // localhost / mypathtorepo" to no avail. How to fix it?

+8
source share
2 answers

file: /// most likely does not work because your SVN repository is in FS format, newer than the one that Git knows about.

Your second approach with svn: // localhost was in the right direction. However, you need to host the repository using the svnserve command-line utility. Sort of:

svnserve -d -R --root file://path/to/repo

After receiving svnserve for the correct repo placement, you can use the path starting with: svn://localhost

0
source

git-svn - . , Git SVN, git-svn, svn2git, .

pleny, svn2git, , - KDE https://github.com/svn-all-fast-export/svn2git. svn2git. , , , , . , .

100% , svneverever http://blog.hartwork.org/?p=763 - SVN Git.


git-svn , , KDE svn2git git-svn :

  • svn2git ( ), ..
  • Git
  • git-svn , , fetch , --tags, , . svn2git,
  • SVN, svn2git, git-svn .
  • svn2git SVN Git
  • SVN SVN Git
  • gazillion svn2git, git-svn

, git-svn , KDE svn2git .: -)

-2

Source: https://habr.com/ru/post/1665390/


All Articles