Git is an essential tool in every developer’s toolbox. Learn more about git at https://git-scm.com/.
Install Git
Make sure that git is already installed on your machine by executing
git —version
If Git is not installed, install and download it from : https://git-scm.com/download/mac or you can just simply execute below on your terminal
brew install git
Setup git config
git config —global user.name “your username”
git config —global user.email “your email address”
Setup SSH keys
cd ~/.sshssh-keygen -t rsa -C “your email address”
Add SSH to Github
pbcopy < id_rsa.pub
Add public key to your github.
Go to https://github.com/settings/keys then New SSH Key. Paste the public key into the key section.
Note: You can find your .ssh folder in /Users/{computername} then press command+shift+. to unhide hidden folders.