DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports
Events Video Library
Refcards
Trend Reports

Events

View Events Video Library

Related

  • How To Create a Go CLI Tool That Converts Markdowns to PDF Files
  • Runtime FinOps: Making Cloud Cost Observable
  • Shrink a Bloated Git Repository and Optimize Pack Files
  • Open-Source GitOps at the Edge: Deploying to Thousands of Clusters With Rancher Fleet

Trending

  • Pragmatica Aether: Let Java Be Java
  • Skills, Java 17, and Theme Accents
  • How to Save Money Using Custom LLMs for Specific Tasks
  • Migrate a Hardcoded LangGraph Agent to LaunchDarkly AI Configs in 20 Minutes
  1. DZone
  2. Testing, Deployment, and Maintenance
  3. Deployment
  4. How to Convert SVN to Git [Video]

How to Convert SVN to Git [Video]

If you are still using SVN but want to make the move to everyone's favorite versioning format, wait no more.

By 
Alan Richardson user avatar
Alan Richardson
·
Jan. 31, 19 · Tutorial
Likes (2)
Comment
Save
Tweet
Share
9.8K Views

Join the DZone community and get the full member experience.

Join For Free

I hit every error possible when converting SVN to GIT. I eventually figured out the simplest way to avoid errors during the conversion process.

Migrate SVN to Git from Local File Repositories

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/svn.ref.svnadmin.c.dump.html
  • 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  
    •  git push origin master -u 

This avoids all errors like CPAN Core, SVN file format versions above 1.6, malformed XML over HTTP, and slow http connections.

This just works.



Git Convert (command)

Published at DZone with permission of Alan Richardson. See the original article here.

Opinions expressed by DZone contributors are their own.

Related

  • How To Create a Go CLI Tool That Converts Markdowns to PDF Files
  • Runtime FinOps: Making Cloud Cost Observable
  • Shrink a Bloated Git Repository and Optimize Pack Files
  • Open-Source GitOps at the Edge: Deploying to Thousands of Clusters With Rancher Fleet

Partner Resources

×

Comments

The likes didn't load as expected. Please refresh the page and try again.

  • RSS
  • X
  • Facebook

ABOUT US

  • About DZone
  • Support and feedback
  • Community research

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Core Program
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 3343 Perimeter Hill Drive
  • Suite 215
  • Nashville, TN 37211
  • [email protected]

Let's be friends:

  • RSS
  • X
  • Facebook