In this step-by-step Git Tutorial, we will go through how to install Git on a Mac machine, how to generate SSH keys and upload your public SSH key to your GitHub account for authorization. How to Install Git on Mac Open a terminal and type $ brew install git This will install Git on your system. To confirm the installation, type $ git --version This will print the version of Git installed on your machine. How to generate SSH key for GitHub authorization • Open a terminal • Go to your home directory by typing cd ~/ • Type the following command $ ssh-keygen -t rsa • This will prompt you to enter a filename to store the key • Just press enter to accept the default filename (/Users/you/.ssh/id_rsa) • Then it will ask you to create a passphrase. This is optional, either create a passphrase or press enter for no passphrase • When you press enter, two files will be created • ~/.ssh/id_rsa • ~/.ssh/id_rsa.pub • Your public key is stored in the file ending with.pub, i.e. ~/.ssh/id_rsa. pub How to access and copy public SSH key In order to authenticate yourself and your device with GitHub, you need to upload your public SSH key which you generated above to your GitHub account.
This guide explains how to install the latest, stable, prepackaged version git on GNU/Linux, Mac Osx, and Windows, using their respective package managers. Git can also be compiled from source and installed on any operating system. How to Install Git on Mac. Open a terminal and type $ brew install git. This will install Git on your system. To confirm the installation, type $ git --version. This will print the version of Git installed on your machine. How to generate SSH key for GitHub authorization. Open a terminal; Go to your home directory by typing cd ~/ Type the.

Install Git Mac Os Terminal
Copy public SSH key Open a terminal and type $ pbcopy.