From the course: Git Essential Training (2023)

Unlock the full course today

Join today to access over 24,800 courses taught by industry experts.

Install Git on Linux

Install Git on Linux

- [Barbara] So, if I want to install Git on Linux I can go to the official website git-scm.com and then /download/linux. Here, it gives me a lot of different versions of Linux and what the options are to install Git. So I can look for the OS I'm actually using and find the right command. I've set up an example in Ubuntu. Now, when you install Ubuntu, Git is actually already installed and you can find it by saying git --version. Now, this is a new installation, and the Git version is actually up to date, but if you have an older installation, there's a big chance that it's out of date, and you can install the latest version by using sudo if you are not logged in as root, otherwise, that's not necessary, and then apt-get install git. As you see, it says here, there's already the latest version at this time, but if you want to install a new version, this is the way to do it on Linux.

Contents