Next-Gen App & Browser Testing Cloud
Trusted by 2 Mn+ QAs & Devs to accelerate their release cycles

Updated November 30, 2026 · Written and reviewed under our editorial policy
To install Git on Windows, download the installer from git-scm.com or run winget install --id Git.Git -e --source winget. On a Mac, run xcode-select --install or brew install git. On Ubuntu or Debian, run sudo apt-get install git. Then run git --version and set your name and email.
To install and set up Git:
git --version.git config --global user.name "Your Name".git config --global user.email "you@example.com".Source: git-scm.com install pages for Windows, macOS and Linux, checked 2026-11-28.
Git for Windows is the standard way to install Git on Windows, and it includes Git Bash. Download the 64-bit installer (an ARM64 build is also available) from git-scm.com/install/windows, run it, and keep the defaults unless one of these screens matters to you:
git works in Command Prompt, PowerShell and your editor, not only in Git Bash.You can also install Git with winget:
winget install --id Git.Git -e --source wingetgit-scm.com notes that the winget and Chocolatey packages aren't maintained by the Git for Windows project and may lag behind the installer.
Git set up? Kane CLI can run end-to-end tests on your repo from the same terminal, so you can run end-to-end tests on every commit.
There are two common ways to install Git on a Mac: Apple's Command Line Tools or Homebrew.
xcode-select --install and click Install in the dialog. You get Apple's build of Git, which is usually a little behind the latest release. Typing git in Terminal on a Mac without the tools brings up the same install prompt.brew install git for the current release, and brew upgrade git later to update it. If you don't have Homebrew yet, install Homebrew first.If you use MacPorts instead, run sudo port install git.
On Linux, install Git from your distribution's package manager (drop sudo if you're already root):
# Debian and Ubuntu
sudo apt-get update
sudo apt-get install git
# Fedora
sudo dnf install git
# Arch Linux
sudo pacman -S gitDistribution packages can be a few releases behind. On Ubuntu, the Git maintainers' PPA carries the latest stable version: run sudo add-apt-repository ppa:git-core/ppa, then sudo apt-get update and sudo apt-get install git.
To check that Git is installed, open a new terminal window (one opened before the install may not see the updated PATH) and run:
git --versionThe output starts with git version followed by the number. When we checked git-scm.com on 2026-11-28, the latest release was 2.56.1. If you have more than one Git installed, where git on Windows or which git on Mac and Linux shows which one runs.

Git's first-time configuration sets the name and email stored in every commit you make:
git config --global user.name "Your Name"
git config --global user.email "you@example.com"Use the email address linked to your GitHub or GitLab account so your commits show up under your profile. Two more settings are worth doing now:
git config --global init.defaultBranch main names the first branch main in new repositories.git config --global core.editor "code --wait" opens VS Code for commit messages. Skip it if you already chose an editor in the Windows installer.Check your settings with git config --list --show-origin.
How you update Git depends on how you installed it:
git update-git-for-windows in Git Bash, or download and run the newest installer from git-scm.com.winget upgrade --id Git.Git -e --source winget.brew upgrade git.sudo apt-get install --only-upgrade git or sudo dnf upgrade git.With Git installed, the next step is to clone a repository, which copies a project and its history onto your computer. Here's how to clone a Git repository over HTTPS or SSH, and how to delete a Git branch once you're done with it.
Starting a new project instead? Before your first commit, generate a .gitignore so build files and secrets stay out of the repository.
Run git --version in Terminal. If it prints a version, Git is installed, usually Apple's version from the Command Line Tools. If it isn't, macOS offers to install the Command Line Tools for you.
Git Bash is a terminal that comes with Git for Windows. It runs a Bash shell with common Unix commands such as ls, cat and ssh, so Git commands from Mac and Linux guides work as written.
Run git update-git-for-windows in Git Bash, or download and run the newest installer from git-scm.com. If you installed Git with winget, run winget upgrade --id Git.Git -e --source winget.
No. Git is the version control tool that runs on your computer. GitHub is a website that hosts Git repositories and adds pull requests, issues and other collaboration features; GitLab and Bitbucket do the same job.
Open a terminal and run git --version. It prints the installed version, for example git version 2.56.1.
KaneAI - Testing Assistant
World’s first AI-Native E2E testing agent.

TestMu AI forEnterprise
Get access to solutions built on Enterprise
grade security, privacy, & compliance