Skip to content

guilhermechapiewski/git2svn

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

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.

About

Migrate a Git repository to SVN preserving history (yes, you read it right)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages