Convert SVN to GIT

First step is to create a translation file for the users. Follow here git_and_svn to create this author file.

Download the script [].

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}
git/convert_svn_to_git.txt · Zuletzt geändert: 2014/06/12 09:43 von idefix