svn2git

Ruby tool for migrating svn projects to git

Install

All systems
curl cmd.cat/svn2git.sh
Debian Debian
apt-get install svn2git
Ubuntu
apt-get install svn2git
image/svg+xml Kali Linux
apt-get install svn2git
Windows (WSL2)
sudo apt-get update sudo apt-get install svn2git
Raspbian
apt-get install svn2git

svn2git

Ruby tool for migrating svn projects to git

Svn2git is a tiny utility for migrating projects from Subversion to Git while keeping the trunk, branches and tags where they should be. It uses git-svn to clone an svn repository and does some clean-up to make sure branches and tags are imported in a meaningful way, and that the code checked into master ends up being what's currently in your svn trunk rather than whichever svn branch your last commit was in.