svn2git command not found

In this troubleshooting guide we learn how to fix svn2git command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

svn2git: command not found

or when using sudo you get the following error message

sudo: svn2git: command not found

Solutions to svn2git: command not found

How To Fix svn2git: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu svn2git is provided by svn2git package.

svn2git is:

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.

To fix this problem, we can install more using the command below.

sudo apt-get -y install svn2git

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install svn2git.

sudo apt -y install svn2git

Or if you have aptitude installed you can use the following command.

sudo aptitude install svn2git

Summary

In this tutorial we learn how to fix svn2git command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.