Installation
Installing Git
On macOS
-
Using Homebrew:
brew install git
-
Using Xcode Command Line Tools:
xcode-select --install
-
Using MacPorts:
sudo port install git
On Linux
-
Debian/Ubuntu:
sudo apt-get update sudo apt-get install git
-
Fedora:
sudo dnf install git
-
Arch Linux:
sudo pacman -S git
-
OpenSUSE:
sudo zypper install git
On Windows
-
Using Git for Windows:
- Download the installer from git-scm.com.
- Run the installer and follow the instructions.
-
Using Chocolatey:
choco install git
-
Using Scoop:
scoop install git
Verifying the Installation
After installation, you can verify the installation by running:
git -v
Or
git --version
If Git is installed, it should show something like git version X.Y
.