How to install git-svn on Linux Mint 15 (Olivia)
I am required to interface with SVN at work, but prefer to run Git locally to allow me to have multiple local branches open at any given time. After making the switch from Windows 7 to Linux Mint 15 (Olivia) Cinnamon, I’m finding that git–svn doesn’t appear to be available for this release of Linux Mint.
So far, I’ve tried installing it from http://community.linuxmint.com/software/view/git-svn, but the install returns an error message:
Package 'git-svn' is virtual
I can find no solution for this error.
I’ve also attempted to install it directly in a terminal window:
sudo apt-get install git
While I successfully installed Git, it is not current (18.104.22.168 vs. 22.214.171.124) and this implementation of Git doesn’t appear to have a “git svn” command, but does have a “git clone” command. This “git clone” command doesn’t appear to have any ability to talk with SVN.
I have tried using the following:
sudo git clone https://<username>@<domain>/svn/<projectname>/trunk <folder_to_checkout_to>
After providing the SVN server password, it attempts to clone the SVN repository, but returns with the following error:
fatal: hhttps://<username>@<domain>/svn/<projectname>/info/refs?service=git-upload-pack not found: did you run git update-server-info on the server?
I don’t know what this means. In searching on Google and StackOverflow, I’ve found that the SVN path may be bad or not exist, but I’ve verified the path is valid as I can access the same path by placing it in a browser and signing in.
I thought this error might be caused by the folder_to_checkout_to not existing yet, but when I create the folder and call a “git init” and then re-execute the git clone command above from the parent directory, it returns:
fatal: destination path '<folder_to_checkout_to>' already exists and is not an empty directory
Using Mysysgit in Windows, the syntax that worked to clone and checkout an SVN repository using Git was as follows:
git svn clone <path_to_repository> -T trunk <folder_to_checkout_to>/
With my install of Git on Linux Mint, it doesn’t have the command “git svn” at all. Any help will be appreciated.
How do I get git-svn installed?
2 Solutions collect form web for “How to install git-svn on Linux Mint 15 (Olivia)”
You can check this documentation:
If this doesn’t works, try this method instead:
$which git $sudo apt-get install git-core $which git /usr/bin/git $git --version
Git is installed by default on mint 16 mate.
use “git –version” to check.