- Install Git either via Homebrew using
brew install git
or download the binary installerr https://git-scm.com/
Open Bash and run following commands
Sometimes the .ssh folder may not get created
mkdir ~/.ssh
Replace your_email@example.com with github profile email
ssh-keygen -t ed25519 -C "your_email@example.com"
clip < ~/.ssh/id_ed25519.pub
eval "$(ssh-agent -s)"
ssh-add ~/.ssh/id_ed25519
Go To Github Settings and add SSH keys https://github.com/settings/keys
Back in Command Line
ssh -T git@github.com