Migrate SVN repository to Git system

# create users.txt for git
touch users.txt
echo "vincent = Vincent Lu " > users.txt

# get git-svn
sudo apt-get install git-core git-svn

# create empty git repository
mkdir newproject
cd newproject
git-svn init http://svn.yoursite.com/oldproject/trunk --no-metadata
git config svn.authorsfile users.txt
git-svn fetch

# clone the git repository created by git-svn fetch
cd ..
git clone newproject myproject

Leave a Reply