Frequently Asked Question
How to install Git on Linux.
Last Updated 4 years ago
Installing Git on Linux
Determine on which Linux distribution your system is based on. See List of Linux distributions – Wikipedia for a list. Most Linux systems – including Ubuntu – are Debian-based.
Debian-based linux systems
Open a terminal window. Copy & paste the following into the terminal window and hit `Return`. You may be prompted to enter your password.
sudo apt update sudo apt upgrade sudo apt install git
You can use Git now.
Red Hat-based linux systems
Open a terminal. Copy & paste the following into the terminal window and hit `Return`. You may be prompted to enter your password.
sudo yum upgrade sudo yum install git
You can use Git now.