[Solved] Git Could not read from remote repository.Please make sure you have the correct access rights

Connect the new computer to the GIT warehouse:

  1. Run at local terminal   ssh-keygen -t rsa -C “username”   (Note:   Username is your user name on GIT)
  2. For all prompt messages, press enter to set the default value. After success, the SSH file will be automatically generated
  3. Open/user/administrator /. SSH (it may not be this path, you need to find it), and open the file ID_ rsa.pub,   Copy the secret key inside
  4. Open GitHub account settings, enter SSH and GPG keys, and add the secret key to SSH   keys
  5. Git clone and other operations can be run normally locally

Similar Posts: