Installation of Git
2.1 Windows Installation
1. Go to https://git-scm.com.
2. Click Download for Windows.
3. Run the downloaded .exe file.
4. During Installation:
• Select "Use Git from the command line and also from 3rd-party software".
• Use default options unless you have specific preferences.
Once done, open Git Bash from the Start Menu
Expected output
🪟 Windows Installation is complete.
2. Click Download for Windows.
3. Run the downloaded .exe file.
4. During Installation:
• Select "Use Git from the command line and also from 3rd-party software".
• Use default options unless you have specific preferences.
Once done, open Git Bash from the Start Menu
bash
1git --version
Expected output
bash
1git version 2.xx.x.windows.x
🪟 Windows Installation is complete.
2.2 MacOS Installation
OPTION 1: Using Homebrew (Recommended)
OPTION 2: Using Xcode Command Line Tools
Now Verify using
🍎 MacOS Installation is complete.
bash
1brew install git
OPTION 2: Using Xcode Command Line Tools
bash
1xcode-select --install
Now Verify using
bash
1git --version
🍎 MacOS Installation is complete.
2.3 Linux Installation
For Ubuntu / Debian:
For Fedora:
For Arch:
Now Verify using
🐧 Linux Installation is complete.
bash
1sudo apt update
2sudo apt install git
For Fedora:
bash
1sudo dnf install git
For Arch:
bash
1sudo pacman -S git
Now Verify using
bash
1git --version
🐧 Linux Installation is complete.
2.4 Confirm Git Installation
Once installed, run:
If Git responds with a version number, you are all set to move forward!
bash
1git --version
If Git responds with a version number, you are all set to move forward!