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 Over 2 million developers have joined DZone. Join Today! Thanks for visiting DZone today,
Edit Profile Manage Email Subscriptions Moderation Admin Console How to Post to DZone Article Submission Guidelines
View Profile
Sign Out
Refcards
Trend Reports
Events
Zones
Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
  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.

Alan Richardson user avatar by
Alan Richardson
·
Jan. 31, 19 · Tutorial
Like (2)
Save
Tweet
Share
8.75K 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, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

Popular on DZone

  • What Is Policy-as-Code? An Introduction to Open Policy Agent
  • Kotlin Is More Fun Than Java And This Is a Big Deal
  • Building a Scalable Search Architecture
  • Beginners’ Guide to Run a Linux Server Securely

Comments

Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

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

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 600 Park Offices Drive
  • Suite 300
  • Durham, NC 27709
  • support@dzone.com
  • +1 (919) 678-0300

Let's be friends: