installing Git
Putting the git program on a computer, which is done differently on each operating system.
In more detail
On Debian or Ubuntu you install the git-all package with apt, on Fedora with dnf, and on a Mac with Homebrew or the Xcode Command Line Tools. On Windows you use winget or the Git for Windows installer from git-scm.com. Running git --version afterwards proves the command is installed and on your path.
Examples
sudo apt install git-allbrew install gitwinget install --id Git.Git -egit --versionRelated terms
- package manager — A tool that installs, updates and removes software together with what it depends on, such as apt on Debian, apk on Alpine or Homebrew on macOS.
- Homebrew — A popular package manager for macOS and Linux, run with the brew command, which installs software into its own directory.
- winget — The command-line package manager built into current versions of Windows.
- Xcode Command Line Tools — Apple's free bundle of developer programs for macOS, which includes a version of Git.
Taught in
- Installing Git, And Telling It Who You Are — Advanced Git Internals & Distributed Workflows