git clone:command not found
By Andrew Adams •
I want to install something. as I am running a command on my Linux is m getting this error. What should i do?
git clone
If 'git' is not a typo you can use command-not-found to lookup the package that contains it, like this: cnf git
13 Answers
Do you have git installed?
You can check that by opening your terminal and typing:
apt policy git
If it shows Installed: (none), it means git isn't installed. You can install it by typing:
sudo apt install git
After installing it you can clone the repository.
1You should have bionic-updates and the security repository enabled in your /etc/apt/sources.list then you will be able to install git through sudo apt install git
u need to install git first
If you’re on a Debian-based distribution, such as Ubuntu, try apt:
$ sudo apt install git-all