First step is to create a translation file for the users. Follow here [[git:git_and_svn?s[]=checkout#checkout_a_svn_repo]] to create this author file.
Download the script [https://raw.githubusercontent.com/schwern/svn2git/master/svn2git].
Then we will clone the repository:
export repo=arinc653
git svn clone file:///usr/local/svn/${repo} -A authors.txt -s ${repo}
cd ${repo}
git branch -a -v
# you only have to execute this if you have branches or tags in the repo
svn2git --no-clone
git remote add origin git@localhost:${repo}
git gc --aggressive
git fsck --unreachable
git push --all
cd ..
rm -Rf ${repo}
rm -Rf /usr/local/svn/${repo}
Related Posts
Jun 11 | Convert CVS to Git | 2 min read |
Dec 16 | GIT and SVN | 3 min read |
Dec 16 | Using GIT as Central Repository on a Server | 1 min read |