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.
Log in to your Ubuntu 18.04 server as a sudo non-root user, first update your default package.
sudo apt update
sudo apt install git
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
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]
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