Convert svn repository to git

 bash | 
 
 copy code |
?

01
mkdir ~/Sites/repo_tmp
02
cd ~/Sites/repo_tmp
03
git-svn init https://svn.example.com/repo/trunk/ --no-metadata
04
git config svn.authorsfile ~/Sites/git-users.txt
05
git-svn fetch
06
git-svn show-ignore > .gitignore
07
git add .gitignore
08
git commit -m "Convert svn ignored files to .gitignore"
09
cd ~/Sites
10
git clone repo_tmp repo

Leave a Reply