Introduction
Git is an open-source version control system used for software development and other version control tasks. As a distributed revision control system, it is designed to prioritize speed, data integrity, and support for distributed, non-linear workflows.
Official project website: https://git-scm.com/
Installation
Like always, we recommend that you update your server:
sudo apt update
sudo apt upgrade
Run the following command to install Git from the official repositories:
sudo apt install git
To verify Git is installed:
git --version
Configuration
After installation, we can start configuring Git.
First, you need to set up your user for Git:
git config --global user.email "your_email_address"
git config --global user.name "your_name or username"
If you forgot or want to change some details, you can always modify Git's configuration file:
nano .gitconfig
That's it! You had installed and set up Git on your server.
β