Git Installation
Install Git on your system and set up your development environment.
Select your operating system then Package Manager
Using Linux:
Note:
Most installation commands require root privileges. Make sure you have sudo access or run them as root.
Choose your Distro
Debian/Ubuntu-based:
sudo apt-get update
sudo apt-get install git
If you are using Ubuntu 20.04 or later, you can use the following command to install Git:
sudo apt install git
or directly download from official site
Recommended:
1
Step 1: Download Git
- Download the installer from git-scm.com.
2
Step 2: Run the Installer
Run the installer and follow the instructions
Choose whether to add Git to your PATH Select your preferred editor Choose the default branch name Select line ending conversion preferences Choose the terminal emulator
3
Step 3: Verify the Installation
After installation, you can verify the installation by running:
git --version
If Git is installed, it should show something like git version X.Y
.