How can I resolve a permission denied error with git-remote-https?

I’m having trouble trying to clone a GitHub repository with the following command:

git clone

When I run it, I get this error:

  • Remove a file from a git repository
  • Managing Internal Shared Libraries with Git and Nuget
  • How to detect conflict between two git repositories.
  • GitHub include from another repository
  • Pushing to Hosted project above webroot
  • Mysqldumper: Dumping each table separately
  • fatal: cannot exec 'git-remote-https': Permission denied

    How can I resolve it?

  • git - Is it possible to exclude file from `git push`, but keep them in the local repository?
  • refname is ambiguous and pull failing
  • How to fix permission denied for .git/ directory when performing git push?
  • How can I determine the URL that a local Git repository was originally cloned from?
  • How do you securely store TLS/SSL key files in Git for Puppet?
  • Js with git handle control version with the new module system client side
  • 2 Solutions collect form web for “How can I resolve a permission denied error with git-remote-https?”


     git clone

    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.

     git clone

    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:

    my RSA keys were not used when authenticating, I did a ssh-add and added them.
    After that it worked figured it out by running ssh -vT in my terminal

    Every GitHub project has a ‘clone url’ widget to help you select the URL you need. Select it’s access method (GIT/HTTP/etc.) and copy the url.

    If it’s your own project (/ have write access to the project):

    git clone


    git clone

    If you want a readonly clone:

    git clone

    Git Baby is a git and github fan, let's start git clone.