I’m having trouble trying to clone a GitHub repository with the following command:
git clone https://username@github.com/MYPROJECT.git
When I run it, I get this error:
fatal: cannot exec 'git-remote-https': Permission denied
How can I resolve it?
Try:
Which should be the correct http address (instead of trying to access github through an ssh session) for a public repo.
It will take advantage of their support for smart http.
is for private repo (as explained here), which should work if your id is right and your public ssh key correctly updated on your GitHub account.
(Note: your original address was missing the
/username/part)The OP reports: