there are many ways to install git on a mac and you may already have it installed. If you are not sure, open Powershell, type git --version, and press enter. If you get a version number, you are good to go. If not, follow one the installation paths below.
GitHub Desktop (easiest)
GitHub Desktop is a GUI for git that makes it easy to manage your git repositories. It will install git for you if it is not already installed.
- Go to desktop.github.com
- Click the Download for windows button
- Open the downloaded file
- Follow the prompts to install GitHub Desktop
- open GitHub Desktop
- Click Sign in if you already have a GitHub account, or click *Create account to create one
- You're all set!
Executable
- Go to the git downloads page
- Click the Windows icon
- Click the 64-bit Git for Windows Setup button
- Open the downloaded file
- Follow the prompts to install git
- Open Powershell
- check that git is installed by opening a terminal, typing
git --version, and pressing enter. You should see something likegit version 2.30.1.windows.1
if Git is still not installed, try restarting your computer and checking again
winget
winget is a package manager for Windows. It allows you to install and manage software packages from the command line.
- check if winget is installed by opening a terminal, typing
winget --version, and pressing enter. If you get a version number, skip to step 4. - install winget
- Restart your computer
-
Open powershell and paste the following command:
winget install --id Git.Git -e --source winget - check that git is installed by opening a terminal, typing
git --version, and pressing enter. You should see something likegit version 2.30.1.windows.1
if Git is still not installed, try restarting your computer and checking again