Please make sure you have the correct access rights
Posted on:July 19, 2019 at 10:00 AM
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.
- Copy the SSH Key In your terminal, run this-
$ 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.
Thank you.