Coder Social home page Coder Social logo

git2svn's Introduction

git2svn

This was a script to migrate a Git repository to SVN preserving the commits history. I updated it to use on HUBzeroas a no hack too cheap way of pulling in data from Git repositories to our internal Subversion repositories. It only pulls the most recent code from the Git repo and no longer preserve all of the commit history. It does clone the Git repository and perform a commit to the Subversion repository using credentials stored in a hubconfiguration.php file that the user can supply the path to.

Usage

./git2svn.sh [options]

Options

-g <url> – clone the Git repository at https <url>
-s <url> – commit to the Subversion repository at <url>
-c <path> – use the credentials stored in the configuration file at <path>
-r <path> – store temporary repositories in the <path>

Temporary directories will be created, in the caller’s home directory, to store the Git and Subversion repositories.
They will be deleted after a successful commit.
If a project name is provided instead of an Subversion repository, the script will make a guess at the subversion repository url.

Example

./git2svn.sh -g https://github.com/codedsk/helloworld.git -s https://hubzero.org/tools/h20161017/svn/trunk -c ./hubconfiguration.php
./git2svn.sh -g https://github.com/codedsk/helloworld.git -s h20161017 -c ./hubconfiguration.php

git2svn's People

Contributors

dskard avatar guilhermechapiewski avatar igorsantos07 avatar

Stargazers

 avatar

Watchers

 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.