How to install Git on Ubuntu Linux 18.04 desktop machine?

How to install Git on Ubuntu Linux 18.04 desktop machine?

    Here, we install Git using system package manager. This is most recommended way of installing Git on Ubuntu Linux operating system. No matter how we install Git, its just a command line utility. Once the installation is done, you need to verify Git version to check whether it is properly installed or not.
  • Git is not a client-server model or architecture, it is a CLI program that operates locally.

# Install Git package from repository.
$ sudo apt install git
 
# Check Git version.
$ git --version

    • Related Articles

    • How to install Docker on Ubuntu Linux 18.04 desktop machine?

      Docker is available in two editions: Community Edition (CE) and Enterprise Edition (EE). Here, we'll proceed with Docker CE, the Community Edition. To do a clean installation, you must first remove existing Docker installation, if anything found. And ...
    • How to install VirtualBox on Ubuntu Linux 18.04 desktop machine?

      If you have a host machine that runs Ubuntu Linux operating system, then you need to install VirtualBox to build and run virtual machines. Now, let's see how to do VirtualBox installation on Linux host machine. # Install required system packages. $ ...
    • How to install Vagrant on Ubuntu Linux 18.04 desktop machine?

      If you have a host machine that runs Ubuntu Linux operating system, then you need to install Vagrant to automate and manage virtual machines. Now, let's see how to do Vagrant installation on Linux host machine. # Download Vagrant. $ wget ...
    • How to install Jenkins on Ubuntu Linux 18.04 desktop machine?

      Here, we proceed with Open JDK and Jenkins installation by configuring and updating its Debian repository on our local machine. This is most recommended way of installing Jenkins on Ubuntu Linux operating system. Once the installation is done, you ...
    • How to install & configure Git Bash on Windows 10/11 desktop machine?

      If you have a host machine that runs Windows 10 or Windows 11 operating system, then you need to install Git Bash to run simple Linux commands. Now, let's see how to do Git Bash installation on Windows host machine. Download the latest Git Bash ...