My Current git version 1.7.9.5...
I need to upgrade to at least git 1.7.10 to have git clone
command to work properly
I tried sudo add-apt
The question was: "What to do when sudo add-apt-repository ppa:git-core/ppa
command fails".
I had the same issue in a VM behind a proxy. I resolved it with the following two steps:
Set up proxy environment variables
export http_proxy=http://:@:
export https_proxy=http://:@:
Run the add-apt-repository
command again as sudo with the -E
option that preserves the user environment:
sudo -E add-apt-repository ppa:git-core/ppa