How to Install Git on Windows and Mac

Follow these steps to install Git on Windows or Mac and connect to a server.

Overview

Who this is for: anyone who needs Git on their computer or wants to connect to a server.

What you need:

  • A Windows 10/11 PC or a Mac
  • An internet connection
  • Admin rights on your computer

Install Git on Windows

  1. Go to https://git-scm.com/install/windows and click Click here to download.
  2. Open the downloaded file. Click Yes when Windows asks for permission.
  3. Click Next on every screen, then click Install.
  4. Click Finish.

Install Git on Mac

  1. Open Terminal (press Command + Space, type Terminal, press Return).
  2. Type git --version and press Return.
  3. When the pop-up appears, click Install, then Agree. If a version number appears instead, Git is already installed.

Check the installation

Open Command Prompt (Windows) or Terminal (Mac) and run:

git --version
ssh -V

Both commands should show a version number, like this:

Connect to a server

  1. Type ssh username@SERVER_IP and press Enter.
  2. The first time, type yes and press Enter.
  3. Enter your password and press Enter. Nothing appears on screen while you type; this is normal.

To disconnect, type exit.

Problem

Fix

'git' is not recognized

Close Command Prompt, open a new one, and try again.

Connection timed out

Check the server IP address with your hosting provider.

Permission denied

Check your username and password.

  • git, install git, git windows, git mac, ssh, connect to server
  • 0 Користувачі, які знайшли це корисним
Ця відповідь Вам допомогла?

Схожі статті

VPS Server - First time user

Hi All,This blog is for first time VPS users. Please follow the below steps to check your VPS....

Backup restoration

Since backups are saved at various nodes to avoid data loss, we manage the backup and...

How To allow SQL Express traffic in windows firewall

Please follow the below steps to allow SQL express communication in the firewall. Open SQL...

How to change SQL authentication in SQL Express

Please follow the below steps Login to SQL Express using SQL management studio. Right-click...

Set Up Sending of Email in Plesk

To Set Up Sending of Email in Plesk, You need to follow the below Points   1. Go to Tools...