# How to install Git on Ubuntu 20.04 in 3 simple steps

Git is probably the most popular version control software out there. Installing it on [Ubuntu](https://www.ionos.com/digitalguide/server/know-how/ubuntu-the-linux-system-for-everyone/ "Ubuntu: The Linux system for everyone") 20.04 using your package management tool takes just a few steps.

## What are the installation requirements?

Git is a **lightweight tool** that can easily be installed on popular operating systems and different Linux distributions. The system requirements for installing the version control software aren’t particularly high, but should still be met:

- x86-based processor or a processor with similar architecture (most modern processors have this)
- 64 MB [RAM](https://www.ionos.com/digitalguide/server/know-how/what-is-ram/ "What is RAM?")
- 20 MB disk space

## What server options are there for installing Git on Ubuntu 20.04?

In addition to the easy installation on a local computer, Git also runs smoothly **on a server**. If the server is being used for programming projects, version control software like Git is extremely useful.

To get started, you have a few server types to choose from:

- **Cloud server**: A [cloud server](https://www.ionos.com/cloud/cloud-servers "Cloud server from IONOS") works with virtualized, highly scalable resources. Billing is done on a per-minute basis.
- **Virtual private server**: A [VPS](https://www.ionos.com/servers/vps "Rent a VPS with IONOS") or vServer also provides scalable resources but at a fixed monthly price.
- **Dedicated server**: A [dedicated server](https://www.ionos.com/servers/dedicated-servers "Dedicated server with Linux – IONOS") will give you dedicated hardware resources (exclusively for you) and is billed by the minute.

### Which IONOS plan is right for you?

Finding the right server can be a confusing process. With the broad range of servers and plans out there, the table below can help you determine which Linux server you should use to install Git on Ubuntu 20.04:

<table>
  <thead>
    <tr>
      <th>Scenario</th>
      <th>Recommended IONOS server</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>Development or testing of simple applications like databases or websites.</td>
      <td>VPS Linux M</td>
    </tr>
    <tr>
      <td>Use of continuous integration and continuous deployment (CI/CD) or deployment of larger websites.</td>
      <td>Cloud Server M</td>
    </tr>
    <tr>
      <td>Use of enterprise applications or high-traffic websites.</td>
      <td>AR6-32 SSD</td>
    </tr>
  </tbody>
</table>

With each server option, you have the freedom to choose the operating system, allowing you to select the right software for your specific needs. In addition, every plan offers high availability and a bandwidth of up to 400 Mbps.

Tip Prefer the newer Ubuntu version 22.04? [Installing Git on Ubuntu 22.04](https://www.ionos.com/digitalguide/server/configuration/install-git-on-ubuntu-2204/) is also super simple and can be done in a few steps.

## How to install Git on Ubuntu 20.04: Step-by-step instructions

Installing Git on a [Linux distribution](https://www.ionos.com/digitalguide/server/configuration/linux-server-distributions/ "Linux Server Distributions") like Ubuntu 20.04 is executed directly **via the command line**.

### Step 1: Update system

For the installation of Git to run smoothly on Ubuntu 20.04, you should first update your operating system. Use the following terminal command to do this:

```bash
sudo apt update
```

### Step 2: Install Git

Now you’re ready to install Git. The command-line command is simple and intuitive:

```bash
sudo apt install git
```

The terminal will tell you if the installation was successful. If Git has **already been preinstalled**, the command line will display this message:

[![Image: Terminal view after installation of Git on Ubuntu 20.04](https://www.ionos.com/digitalguide/fileadmin/_processed_/e/8/csm_git-install-terminal-view-ubuntu-2004_810ee4eb64.webp "Terminal view after installation of Git on Ubuntu 20.04")](https://www.ionos.com/digitalguide/fileadmin/DigitalGuide/Screenshots_2023/git-install-terminal-view-ubuntu-2004.png) If you already have Git installed, this message will appear in the terminal. ### Step 3: Review installation

Use this command to display the version of Git that is currently installed:

```bash
git --version
```

## Tips for working with Git

All of the commands you need to work with the version control system in the command line **start with the keyword “git”**. You can also download and clone repositories with “git clone” or create your own repositories with “git init”.

For a detailed look at how Git works, check out our [Git tutorial](https://www.ionos.com/digitalguide/websites/web-development/git-tutorial/ "Git Tutorial"). If you just need a quick **refresher** on essential Git commands or want to **look up a specific command**, check out our handy [Git cheat sheet](https://www.ionos.com/digitalguide/websites/web-development/git-cheat-sheet/ "Git Cheat Sheet").

Note If you prefer working with graphical user interfaces, we recommend using the Git-based version control platforms [GitHub or GitLab](https://www.ionos.com/digitalguide/websites/web-development/gitlab-vs-github/ "GitLab vs. GitHub"). In addition to Git’s core functionality, the platforms also support other features as well.


This is a markdown version of: [https://www.ionos.com/digitalguide/server/configuration/install-git-on-ubuntu-2004/](https://www.ionos.com/digitalguide/server/configuration/install-git-on-ubuntu-2004/) for AI/LLM consumption.