How to install Git on Ubuntu 18.04 [Quick Start]

Introduction

The version control system helps you share and collaborate on software and development projects. Git is currently one of the most popular version control systems.

This tutorial will guide you to install and configure Git on an Ubuntu 18.04 server. For a more detailed version of this tutorial, and a better description of each step, please refer to How to install Git on Ubuntu 18.04.

Step 1-Update the default package

Log in to your Ubuntu 18.04 server as a sudo non-root user, first update your default package.

sudo apt update

Step 2-Install Git

sudo apt install git

Step Three-Confirm the installation is successful

You can confirm that you have installed Git correctly by running this command and receiving output similar to the following:

git --version

The output is as follows:

git version 2.17.1

Step 4-Set up Git

Now that you have installed Git and prevented warnings from appearing, you should configure it with your information.

git config --global user.name "Your Name"
git config --global user.email "[email protected]"

If you need to edit this file, you can use a text editor, such as nano:

nano ~/.gitconfig

The contents of ~/.gitconfig are as follows:

[ user]
 name = Your Name
 email = [email protected]

Related tutorials

Here are links to more detailed tutorials related to this guide:

To learn more about Linux open source information tutorial, please go to Tencent Cloud + Community to learn more.

Reference: "How To Install Git on Ubuntu 18.04 [Quickstart]"

Recommended Posts

How to install Git on Ubuntu 18.04 [Quick Start]
How to install R on Ubuntu 18.04 [Quick Start]
How to install Anaconda on Ubuntu 18.04 [Quick Start]
How to install Git on Ubuntu 20.04
How to install Git on Ubuntu 20.04
[Quick Start] How to install Apache web server on Ubuntu 18.04
How to install Ruby on Ubuntu 20.04
How to install Memcached on Ubuntu 20.04
How to install Java on Ubuntu 20.04
How to install MySQL on Ubuntu 20.04
How to install VirtualBox on Ubuntu 20.04
How to install Elasticsearch on Ubuntu 20.04
How to install Protobuf 3 on Ubuntu
How to install Nginx on Ubuntu 20.04
How to install Apache on Ubuntu 20.04
How to install Node.js on Ubuntu 16.04
How to install MySQL on Ubuntu 20.04
How to install Git on CentOS 8
How to install Vagrant on Ubuntu 20.04
How to install Bacula-Web on Ubuntu 14.04
How to install PostgreSQL on Ubuntu 16.04
How to install Anaconda3 on Ubuntu 18.04
How to install Memcached on Ubuntu 18.04
How to install Jenkins on Ubuntu 16.04
How to install MemSQL on Ubuntu 14.04
How to install Go on Ubuntu 20.04
How to install MongoDB on Ubuntu 16.04
How to install Mailpile on Ubuntu 14.04
How to install PrestaShop on Ubuntu 16.04
How to install Skype on Ubuntu 20.04
How to install Jenkins on Ubuntu 20.04
How to install Python 3.8 on Ubuntu 18.04
How to install KVM on Ubuntu 18.04
How to install opencv3.0.0 on ubuntu14.04
How to install Anaconda on Ubuntu 20.04
How to install Prometheus on Ubuntu 16.04
How to install Jenkins on Ubuntu 18.04
How to install Apache on Ubuntu 20.04
How to install Solr 5.2.1 on Ubuntu 14.04
How to install MariaDB on Ubuntu 20.04
How to install Nginx on Ubuntu 20.04
How to install Mono on Ubuntu 20.04
How to install Zoom on Ubuntu 20.04
How to install Nginx on Ubuntu 16.04
How to install OpenCV on Ubuntu 20.04
How to install Spotify on Ubuntu 20.04
How to install Postman on Ubuntu 18.04
How to install Go 1.6 on Ubuntu 16.04
How to install Go on Ubuntu 18.04
How to install MySQL on Ubuntu 14.04
How to install PostgreSQL on Ubuntu 20.04
How to install VLC on Ubuntu 18.04
How to install TeamViewer on Ubuntu 20.04
How to install Webmin on Ubuntu 20.04
How to install Docker Compose on Ubuntu 18.04
How to install Ubuntu on Raspberry Pi
How to install MySQL on Ubuntu 18.04 (linux)
How to install Ubuntu 19.10 on Raspberry Pi 4
How to install Apache Kafka on Ubuntu 18.04
How to install Apache Maven on Ubuntu 20.04
How to install Apache Tomcat 8 on Ubuntu 16.04