Git - SVN2GIT

Steps to convert SVN repository to GIT using svn2git:

svn co –username x http://x.x.x.x/x svn log –quiet | grep -E “r[0-9]+ | .+ |” | cut -d’|’ -f2 | sed ‘s/ //g’ | sort | uniq echo “\ x x x [email protected] x x x [email protected] x x x [email protected] … x x x [email protected]” > authors.txt svn2git http://x.x.x.x/x –authors ./authors.txt –verbose git remote add origin https://[email protected]/x/x.git git pull origin master git config –global user.name “User Name” git config –global user.email [email protected] git add file.txt git commit -m “SVN to Git Migration” git push -u origin master


Sources:

  • https://riptutorial.com/git/example/22730/migrate-from-svn-to-git-using-svn2git