Git clone using https is not working, but works with help of ssh
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.gitI have referred this document for ssh key setup:
1 Answer
This resolve my problem
git config --global url.":".insteadOf ""