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

访问量: 1809

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

订阅/RSS Feed

Subscribe

分类/category