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
Newsletter
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
  • Closing the Drift Loop: An AI Agent That Drafts Terraform Fixes
  • When a Coding Agent Fixes the Test Instead of the Bug
  • Building a Scope-Constrained AI Agent for Automated CI Failure Repair

Trending

  • The Permission Was Valid. The Action Was Not Authorized.
  • PWA on iOS, Part 2: HTTPS, Manifest and Service Worker
  • Designing Frontend Applications for Failure, Not Just Success
  • Evals in CI: How to Catch Agent Regressions Before Production Does

Draft This article hasn't been published, so readers can't see it.

In moderation This article is waiting for review, so readers can't see it yet.

Deleted This article has been deleted, so readers can't see it.

  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
·
Jan. 31, 19 · Tutorial
Post on X (opens in a new tab) Share on LinkedIn (opens in a new tab)
9.9K Views

Join the DZone community Save articles, join the discussion, and download Refcards and Trend Reports with a free account.

Join for free Already a member? Log in

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
  • Closing the Drift Loop: An AI Agent That Drafts Terraform Fixes
  • When a Coding Agent Fixes the Test Instead of the Bug
  • Building a Scope-Constrained AI Agent for Automated CI Failure Repair

Partner Resources

×

Comments

Loading comments

The comments didn't load

Please try again in a moment.

Likes

Loading

The next likes didn't load. Please try again.

The likes didn't load

Please try again in a moment.

See who liked this

Log in or join DZone for free to see who liked this article.

Log in Join for free
  • 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