Please make sure you have the correct access rights

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.

  1. 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
  1. Login to your github account and go to settings.
  2. Then, click on SSH and GPG keys
  3. Click on New SSH key.
  4. Then, in the “Title” field, add a title for the new key. You can add anything you want.
  5. Now, paste your key into the Key field.
  6. Next, Click Add SSH key.
  7. Finally, if prompted, confirm your GitHub password.

You have done the set-up. Hope it will work for you.

Thank you.