How to convert Svn To Git Using svnserve, VisualSVN, svnadmin dump, and git svn

Опубликовано: 27 Сентябрь 2024
на канале: EvilTester - Software Testing
15,196
67

To migrate from SVN to GIT I found it most reliable to use a local svn server, having migrated from remote svn using an svn dump file. then using svnserve to allow conversion using git svn over the svn protocol.

* have a local svn server I've been using Visual SVN Server
* I migrated remote svn repos via a dump file http://svnbook.red-bean.com/en/1.7/sv...
* imported the dump file into Visual SVN
* running "svnserve -d --foreground -r ." in the foot folder containing the svn repos
* then I can use git svn to clone the repo with the svn protocol
* "git svn clone svn://127.0.0.1/my-repo -s"
* then I can add a remote server and push it to my local repo
* git remote add origin http://mygitserver/Bonobo.Git.Server/my-repo.git
* git push origin master -u

Read my blog post write up on this topic:

https://www.eviltester.com/2019/01/co...

---

You can support me on Patreon   / eviltester   (and receive extra content)

Hire me for consultancy and buy my online books and training at:

- https://compendiumdev.co.uk
- https://eviltester.com
- http://seleniumsimplified.com
- http://javafortesters.com