FPTWaze
Home โ€บ Version Control โ€บ Git โ€บ Install

How to install Git on Windows, macOS and Linux

Updated ยท FPTWaze editors

Git is an open source distributed version control system. Learn how to install, update and remove it safely on Windows, macOS and Linux.

Quick answer: Git is free to download from its official website for Windows, macOS, Linux. To install it with one command, on Windows run "winget install -e --id Git.Git"; on macOS run "brew install git".
Developer
Git community
License
Open source (GPL-2.0)
Runs on
Windows, macOS, Linux
Latest version
2.56.0.4

Links open the developer's own website. FPTWaze does not host or modify any file.

Install, update and remove Git with a command

SystemActionCommand
Windows (winget)Installwinget install -e --id Git.Git
Updatewinget upgrade -e --id Git.Git
Removewinget uninstall -e --id Git.Git
macOS (Homebrew)Installbrew install git
Updatebrew upgrade git
Removebrew uninstall git

Packages come from the official package managers. New to them? See how winget works.

Git is an open source distributed version control system for tracking changes in source code. It suits developers who need branching, merging and offline work, and who share their work through remotes such as GitHub and GitLab. The safe way to get Git is from the official download page or from an official package manager.

How to install Git on Windows

On Windows, Git is installed with Git for Windows, which also includes Git Bash. To install Git on Windows safely:

  1. Use the official download button for Windows above.
  2. Run the installer you downloaded.
  3. Follow the steps in the installer until setup is complete.

Windows users can also install Git with winget. Use the winget command in the commands table above, which uses the package Git.Git.

How to install Git on macOS

To install Git on macOS from the official source:

  1. Use the official download button for macOS above.
  2. Open the downloaded file and follow the steps to finish the install.

If you use Homebrew, you can install the git formula with the command shown in the commands table above.

How to install Git on Linux

To install Git on Linux from the official source:

  1. Use the official download button for Linux above.
  2. Follow the install instructions on that official page.

How to update Git

Update Git with the update command for your system in the commands table above. If you installed Git with the official installer, download the newest version from the official download button for your system and run it again. Installing the newer version replaces the older one.

How to uninstall Git

Remove Git with the uninstall command for your system shown in the commands table above. If you installed Git on Windows with Git for Windows, you can also use the uninstaller that came with that installer.

Frequently asked questions

Is Git open source?

Yes. Git is open source software released under the GPL-2.0 license. You can read the license terms before you use or share Git.

Where should I download Git safely?

Download Git only from the official download button on this page, or install it with an official package manager. For Windows, the official winget package is Git.Git. For macOS, the official Homebrew formula is git.

What is Git Bash?

Git Bash is included with Git for Windows. When you install Git on Windows with Git for Windows, Git Bash is installed at the same time.

Can I use Git offline?

Yes, Git lets developers work offline and then share their work through remotes such as GitHub and GitLab when they are online again.

Git: The distributed version control system.

See the Git page for version history and all platforms.

How to install Git on Windows, macOS and Linux

How this guide was made: written with AI assistance from the facts in our catalog (official links, packages, license, platforms) and checked by an editor before publication. Commands and links above come straight from the catalog.