GIT

Git Installation

Install Git on your system

Git Installation

Before you start using Git, you need to make sure it is installed on your computer. Here's how to install Git on different operating systems:

Install Git on Linux

If you want to install the basic Git tools on Linux via a binary installer, you can generally do so through the package management tool that comes with your distribution:

# For Ubuntu/Debian
sudo apt-get update
sudo apt-get install git

# For Fedora
sudo dnf install git

# For CentOS
sudo yum install git

Install Git on macOS

The easiest way to install Git on macOS is using Homebrew:

brew install git

Or download the installer from the official Git website.

Install Git on Windows

Download Git for Windows from the official website: https://git-scm.com/download/win

Verify Installation

After installation, verify that Git is installed correctly:

git --version

This should output something like: git version 2.39.0

Configure Git

After installing Git, you should configure it with your name and email:

git config --global user.name "Your Name"
git config --global user.email "your.email@example.com"