There are quite a few blog posts about how to import a Subversion repository into git. Simplistic Complexity’s write-up is the best I’ve seen on how to do it cleanly. Here is a quick summary of the steps:
mkdir temp_repos; cd temp_repos
# init the git repository, do not import quite yet
git-svn init svn://repository_goes_here# specify mapping from svn users to git users
git config svn.authorsfile ~/authors.txt# start the import, it may take a while
git-svn fetchcd ..; git clone temp_repos clean_repos
rm -rf temp_repos; cd clean_repos
# enjoy working with git
If you would like more detail, especially about the mapping of users with authors.txt, please refer to the original article.
Post a Comment