Post4VPS Forum | Free VPS Provider
Git Clone COMMAND not working in kali! - Printable Version

+- Post4VPS Forum | Free VPS Provider (https://post4vps.com)
+-- Forum: Geek World (https://post4vps.com/Forum-Geek-World)
+--- Forum: Scripting & Programming (https://post4vps.com/Forum-Scripting-Programming)
+--- Thread: Git Clone COMMAND not working in kali! (/Thread-Git-Clone-COMMAND-not-working-in-kali)

Pages: 1 2


Git Clone COMMAND not working in kali! - Amresh - 08-21-2018

Hey plz help me out,.
I wanted to clone a git file from github....
But when I write the command...
Code:
git clone https://github.com/YOUR REPO/YOUR REPOSITORY

[font=Roboto, sans-serif](*Replace your repo and your repository with your git file on github)
[/font]


[font=Roboto, sans-serif]Then it shows a error[/font]
Code:
bash: git: command not found

[font=Roboto, sans-serif][font=Roboto, sans-serif]Plz help me out...
[/font]
[/font]


[font=Roboto, sans-serif][font=Roboto, sans-serif]Anyone who knows Kali then plz help me![/font][/font]


RE: Git Clone COMMAND not working in kali! - tryp4vps - 08-21-2018

It seems you just forget to install git first.

Try:

Code:
apt-get install git

It should then work.


RE: Git Clone COMMAND not working in kali! - Amresh - 08-21-2018

(08-21-2018, 06:10 AM)tryp4vps Wrote: It seems you just forget to install git first.

Try:

Code:
apt-get install git

It should then work.

Hey I tried to install >> git << but when I tried to install it was not fetching files....it was showing errors!
I am right now not on my PC so I right now can't post the screenshots...
Is there any way through which I can install git files offline!


RE: Git Clone COMMAND not working in kali! - tiwil - 08-21-2018

Guess he should use sudo,

Code:
sudo apt-get install git

Then insert your password.
It should works.


RE: Git Clone COMMAND not working in kali! - humanpuff69 - 08-21-2018

The git command not found because the git package probably isnt installed
try using apt-get or yum depending on your distro to install the git package


RE: Git Clone COMMAND not working in kali! - deanhills - 08-22-2018

(08-21-2018, 01:16 PM)humanpuff69 Wrote: The git command not found because the git package probably isnt installed
try using apt-get or yum depending on your distro to install the git package
Agreed that this is probably the problem.  @Amresh - you can Google this problem and how to load and set up git and git permissions if you haven't got the package installed yet. 

There are many tutorials online for how to install the Git package, this one is a good example of which install commands to use:

https://www.liquidweb.com/kb/install-git-ubuntu-16-04-lts/

There are plenty of tutorials for setting up git for the first time, the one below is a good example:
https://git-scm.com/book/en/v2/Getting-Started-First-Time-Git-Setup


RE: Git Clone COMMAND not working in kali! - Kururin - 08-22-2018

Isn't Kali Linux, linux anyway? If so using apt-get will work. As many people suggested here. Use

Code:
sudo apt-get install git

That should do the trick and install git on your system, then you will be able to clone the repository by using this command

Code:
git clone [repo url]

And you are good to go


RE: Git Clone COMMAND not working in kali! - youssefbasha - 08-22-2018

sudo apt-get install git
Then you can use git clone (url)
You cant get any file offline.


RE: Git Clone COMMAND not working in kali! - Amresh - 08-23-2018

Hey guys thanks for the reply!

But I am still facing issues!

When I was installing git using sudo apt-get ....
I was being displayed by an error saying that >>Error in File Fetching<< or somewhat like this only!

I was thinking that is there any way through which I can install git offline.....like first I download the package and install it from the terminal offline!


RE: Git Clone COMMAND not working in kali! - Mashiro - 08-23-2018

Post the whole error log of apt-get output please. There might be an issue with the package manager, or something else. Without the full error log it is hard to pin point the issue.