Git is probably the most popular version control software out there. In­stalling it on Ubuntu 20.04 using your package man­age­ment tool takes just a few steps.

What are the in­stall­a­tion re­quire­ments?

Git is a light­weight tool that can easily be installed on popular operating systems and different Linux dis­tri­bu­tions. The system re­quire­ments for in­stalling the version control software aren’t par­tic­u­larly high, but should still be met:

  • x86-based processor or a processor with similar ar­chi­tec­ture (most modern pro­cessors have this)
  • 64 MB RAM
  • 20 MB disk space

What server options are there for in­stalling Git on Ubuntu 20.04?

In addition to the easy in­stall­a­tion on a local computer, Git also runs smoothly on a server. If the server is being used for pro­gram­ming 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 works with vir­tu­al­ized, highly scalable resources. Billing is done on a per-minute basis.
  • Virtual private server: A VPS or vServer also provides scalable resources but at a fixed monthly price.
  • Dedicated server: A dedicated server will give you dedicated hardware resources (ex­clus­ively for you) and is billed by the minute.

Which IONOS package is right for you?

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

Scenario Re­com­men­ded IONOS server
De­vel­op­ment or testing of simple ap­plic­a­tions like databases or websites. VPS Linux M
Use of con­tinu­ous in­teg­ra­tion and con­tinu­ous de­ploy­ment (CI/CD) or de­ploy­ment of larger websites. Cloud Server M
Use of en­ter­prise ap­plic­a­tions or high-traffic websites. AR6-32 HDD

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 package offers high avail­ab­il­ity and a bandwidth of up to 400 Mbps.

Tip

Prefer the newer Ubuntu version 22.04? In­stalling Git on Ubuntu 22.04 is also super simple and can be done in a few steps.

How to install Git on Ubuntu 20.04: step-by-step in­struc­tions

In­stalling Git on a Linux dis­tri­bu­tion like Ubuntu 20.04 is executed directly via the command line.

Step 1: update system

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

sudo apt update
bash

Step 2: install Git

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

sudo apt install git
bash

The terminal will tell you if the in­stall­a­tion was suc­cess­ful. If Git has already been pre­in­stalled, the command line will display this message:

Image: Terminal view after installation of Git on Ubuntu 20.04
If you already have Git installed, this message will appear in the terminal.

Step 3: review in­stall­a­tion

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

git --version
bash

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 re­pos­it­or­ies with ‘git clone’ or create your own re­pos­it­or­ies with ‘git init’.

For a detailed look at how Git works, check out our 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.

Note

If you prefer working with graphical user in­ter­faces, we recommend using the Git-based version control platforms GitHub or GitLab. In addition to Git’s core func­tion­al­ity, the platforms also support other features as well.

Go to Main Menu