Bower ECMDERR Failed to execute "git ls-remote --tags --heads https://github.com/carhartl/jquery-cookie.git", exit code of #128 fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exi

github
bower

#1

I am getting this error ‘bower ECMDERR Failed to execute “git ls-remote --tags --heads https://github.com/carhartl/jquery-cookie.git”, exit code of #128 fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists.’ starting from roughly half an ago.

I have confirmed the github project is still accessible. (http://stackoverflow.com/a/21641727/58129)

After some googling, it seems like it is due to port 22 being blocked. Can anyone from circle CI team takes a look at it?


Unable to get repository on glide install
#2

i’m having the same issue with bower,
in every build it’s a different repository …
any solution yet ?


#3

bump bump
found no solution yet


#4

Looks like this is caused by ~/.gitconfig, that has the lines:

[url "git@github.com:"]
    insteadOf = https://github.com/

Which is forcing git to use ssh mode instead of https.


#5

So what is the workaround here? Simply truncate the file .gitconfig with a command in circle.yml?


#6

That’s what I’m doing for now. I’m not sure when the file is created exactly.

I’m using - rm -f ~/.gitconfig


#7