Home Svn到git的转换(convertingsvntogit)
Post
Cancel

Svn到git的转换(convertingsvntogit)

1. sudo apt-get install git-svn   (make sure you have the 'git svn' installed ) 

2. First you have to create a file that maps your Subversion commit author names to Git commiters, say ~/authors.txt:

jmaddox = Jon Maddox <jon@gmail.com
bigpappa = Brian Biggs <bigpappa@gmail.com>

Then you can download the Subversion data into a Git repository:

mkdir repo && cd repo
git svn init http://subversion/repo --no-metadata
git config svn.authorsfile ~/authors.txt
git svn fetch

参考:(refer to:) http://stackoverflow.com/questions/79165/how-to-migrate-svn-with-history-to-a-new-git-repository

This post is licensed under CC BY 4.0 by the author.