Git Product home page Git Product logo

git2svn's Introduction

git2svn

This is a script to migrate a Git repository to SVN preserving the commits history. This is not something that people will use a lot, but in case you need to do something like this (like I did – don’t ask me why), you might want to use this script.

If you don’t need to preserve your history, there’s a good guide on Google Code explaining how to migrate in a simpler way.

Usage

1) Clone your Git repository and checkout your SVN repository:

$ git clone git://github.com/guilhermechapiewski/myrepo.git git_repo
$ svn checkout https://myrepo.googlecode.com/svn/trunk/ svn_repo

2) Configure git2svn.sh variables (GIT_DIR and SVN_DIR) with locations of both repositories.

3) Run the script from anywhere except one of these two directories.

Example

If you want to see an example migration, check the following repositories:

Source: http://github.com/acarlos1000/MemeiPad/commits/master
Destination: http://code.google.com/p/memeipad/source/list

Be careful

This script will delete all the files from your SVN repository when the migration of the first commit happens, and will create new revisions based on the commits from the Git repository.

git2svn's People

Contributors

tocgic avatar guilhermechapiewski avatar igorsantos07 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.