4

As explained here, on Windows Subsystem for Linux I can do many many things using the command line. I am wondering if it is possible to install Git. I have tried using

sudo apt-get install git

but the result is:

~$ sudo apt-get install git
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package git

Some suggestions?

Leos313
  • 2,064

1 Answers1

8

You might need to add the package first:

sudo add-apt-repository ppa:git-core/ppa
sudo apt-get update
sudo apt-get install git
Baa
  • 3,750