Giter Site home page Giter Site logo

svnprocedure's Introduction

SVNProcedure

Documenting my procedure for bringing an SVN repo into Git/GitHub

I have been moving more and more of my old SVN repositories to Git and GitHub. Eventually, I'll probably hit every one that's still got any activity. I make this public in case it's of use to anyone. Note that my intent here is to get all of my history from the SVN repository, but then to switch completed to a GitHub-hosted Git repository going forward. The SVN server's version and any old copies of the repository are abandoned.

Some of this is from my own accumulated knowledge of SVN and Git, but I have based some of this on information found at the following:

The SVN repositories are on a server which I accessed through the svn+ssh protocol. Most of them did not have multiple users, so I don't need to worry about the steps that try to map SVN users to Git users. I also rarely had meaningful branches or tags, so I just import the SVN trunk as Git master.

I'll use server.svn as the hostname and reponame as the repository name below.

First step, clone the SVN repository as a Git repository (work in a temporary directory).

git svn clone svn+ssh://server.svn/svn/reponame/trunk reponame

Assuming that looks good, create a repository on GitHub. It will also be called reponame.

Back in the clone created above, set its origin to the GitHub repository you just created.

git remote add origin https://github.com/jteresco/reponame.git

And then push the clone there.

git push -u origin master

The repository should now be on GitHub. Proceed with creating a clone or whatever else.

svnprocedure's People

Contributors

jteresco avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.