Back

SVN 到 GIT 的转换(converting svn to git)

发布时间: 2013-02-17 01:27:00

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 <[email protected]
bigpappa = Brian Biggs <[email protected]>

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

Back