RELATED TAGS git, intallation, download, windows, mac, linux
QUESTIONS
How can I use git on my computer?
Where can I download git?
How do I install git for Windows/PC?
How do I install git for Mac?
How do I install git for Linux/Ubuntu?
You can as first attempt try to type git in one of your OS search bars or in the OS app list (start menu, etc).
If you find it there, this can be a hint, that git is already installed. Unfortunatly sometimes it's just
bloatware, ads or links to install something different.
To check if you have the real git, type this in your CMD/Terminalgit--version
If you have it, it will output something like this (on Windows):
git version 2.39.2windows.1
In this case, you don't have to do anything and it's all set up.
If you see an error message like this (on Windows):
'git' is not recognized as an internal or external command, operable program or batch file.
In this case, the CMD/terminal is stating that git is not regonized/installed/known and you need to install it.
Continue with the next point.
Reminder
In case you overlooked it: If git is installed, you don't need to do any of the steps below and are good to go.
Install/Download Options
There are multiple ways to install git and most optionsare for experienced developers.
You can have a look if you want to or jump to the next step for a recommended installation for most users.
Advanced Git install/download page for Windows/Mac/Linux Recommended Installation
[ WINDOWS ]
Select a download link on the windows download page
to an executable installer (a file with *.exe) - there are multiple ones, select the latest
64-bit version (not the 32-bit version, this is for very old or special computers).
Download the installer and execute it (by double clicking it in the explorer).
[ MAC ]
Unfortunatly, the easiest way to install it on Mac is with a terminal and homebrew,
a software that manages software installations.
1. Install homebrew with this command in a terminal:
/bin/bash-c"$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
2. Execute this in the terminal to install git via homebrew:
brewinstallgit
3. Execute this in the terminal to install git-gui via homebrew:
brewinstallgit-gui
[ LINUX ]
This is for users using Ubuntu (or something similar) with the software manager apt (usually pre-installed).
If you use something different, please check the linux/unix install/download page .
On linux with apt execute this in the terminal:
sudoaptinstallgit-all Check if git is working
Now the first step to check should work. Additionally you can open git-gui for testing.
Git-gui is a visual program to use git without a CMD/terminal.
Type this into the CMD/terminal to open git-gui:
gitgui APP | VERSION git 2
RELATED TAGS git, intallation, download, windows, mac, linux
QUESTIONS
How can I use git on my computer?
Where can I download git?
How do I install git for Windows/PC?
How do I install git for Mac?
How do I install git for Linux/Ubuntu?