Command (β)
+ Space
, type Terminal
, and press Enter
.In the Terminal, type:
git --version
git version 2.x.x
, Git is already installed.If you prefer using Homebrew:
Install Homebrew by pasting this into Terminal:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
After installation, run:
brew install git
You can verify installation by running
git --version
again.
Win + S
) and type cmd
to open the Command Prompt.Type:
git --version
Follow the setup instructions, and make sure:
Check if Git is already installed:
git --version
sudo apt update
sudo apt install git
After installing Git, configure your identity:
git config --global user.name "Your Name"
git config --global user.email "you@example.com"
You can verify settings with:
git config --list