I'm using angular-mock in bower and when I do bower install, I'm getting following error:
ECMDERR Failed to execute "git ls-remote --tags --heads https://github.com/angular/bower-angular-mocks.git", exit code of #128 Permission denied (publickey). fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists.
Additional error details: Permission denied (publickey). fatal: Could not read from remote repository.
Please make sure you have the correct access rights and the repository exists.
The problem was I had pointed to SSH instead of HTTPS call to github.com, I have deleted following line in git .config file and got resolved
[url "[email protected]"] insteadOf = https://github.com/