19 Jul 2019 . Tips and Tricks . 345 views
If you are using git in your computer and facing the issue called Please make sure you have the correct access rights and the repository exists. then, this post might be helpful for you.
To avoid this issue, you need to add
ssh key in your git account. I consider you are using GitHub. So let's dig into it.
$ pbcopy < ~/.ssh/id_rsa.pub # Copies the contents of the id_rsa.pub file to your clipboard
Login to your github account and go to settings.
Then, click on SSH and GPG keys
Click on New SSH key.
Then, in the "Title" field, add a title for the new key. You can add anything you want.
Now, paste your key into the Key field.
Next, Click Add SSH key.
Finally, if prompted, confirm your GitHub password.
You have done the set-up. Hope it will work for you.