I have created a private repo in github and when I am trying to clone it using cmd (git), I am prompted with github window where I enter my username and password. It says login failed in the cmd and then asks username/password in the cmd. I enter the credentials again and press enter. I get error like fatal: Authentication failed for
I performed the above operation using https. when I tried with ssh, i get this error [email protected]: Permission denied (publickey). fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists.
How can I clone this private repository?
CodePudding user response:
Github no longer supports basic account credentials (username and password). You have to generate a personal access token to proceed. follow these steps here: Generate Personal Access Token
I use Webstorm IDE and it made this very easy to fix. I hope this works for you.