Mirror SVN to GIT with History

By polfilm,

  Filed under: GIT, SVN
  Comments: None

This is actually a quite simple procedure:

apt-get install git git-svn
mkdir SVN
cd SVN
mkdir Project01
mkdir Project01Tmp
git svn clone --stdlayout --no-metadata -A users.txt https://192.168.1.xxx:8443/svn/Project01/ Project01
git clone --bare Project01 Project01Tmp
cd Project01Tmp
git push --mirror ssh://git@192.168.1.yyy/Project01.git
mv Project01 old-Project01
mv Project01Tmp old-Project01Tmp
git clone ssh://git@192.168.1.yyy/Project01.git

users.txt file should be in the following format

user1=First Last <first.last@example.com>
VisualSVN Server = Visual SVN Server <svn@example.com>

Be the first to write a comment.

Your feedback

You must be logged in to post a comment.