M HYPE SPLASH
// news

Git clone using https is not working, but works with help of ssh

By John Peck

Git clone using https is not working on my mac machine, getting following error :

akshaybandivadekar@Akshays-MacBook-Pro codebase % git clone
Cloning into 'lodash'...
: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.

But using ssh it works

git clone :lodash/lodash.git

I have referred this document for ssh key setup:

1 Answer

This resolve my problem

git config --global url.":".insteadOf ""

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy