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.
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.
Links open the developer's own website. FPTWaze does not host or modify any file.
| System | Action | Command |
|---|---|---|
| Windows (winget) | Install | winget install -e --id Git.Git |
| Update | winget upgrade -e --id Git.Git | |
| Remove | winget uninstall -e --id Git.Git | |
| macOS (Homebrew) | Install | brew install git |
| Update | brew upgrade git | |
| Remove | brew 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.
On Windows, Git is installed with Git for Windows, which also includes Git Bash. To install Git on Windows safely:
Windows users can also install Git with winget. Use the winget command in the commands table above, which uses the package Git.Git.
To install Git on macOS from the official source:
If you use Homebrew, you can install the git formula with the command shown in the commands table above.
To install Git on Linux from the official source:
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.
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.
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.
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.
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.
Yes, Git lets developers work offline and then share their work through remotes such as GitHub and GitLab when they are online again.

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.