After setting up git on your local machine and signing up to GitHub you will be required to supply your GitHub login details every time you tried to push to your remote repository, and that can be a really painful repetitive task you would not like to do. For newbies using git and GitHub, this is one thing that might have bothered you whenever you tried communicating with your remote repository.
In this article, I will walk you through the process I took to set up my local machine to connect to my GitHub repository using
The first step will be to generate a new SSH key:
- Open Terminal and paste the command below, substituting in your GitHub email address. This will create a new ssh key, using the provided email as a label.
$ ssh-keygen -t rsa -b 4096 -C "email@example.com"