Reputation: 133
I'm new to bower and git, and i got this error when I ran bower install
command in my AngularJs project directory:
bower ECMDERR Failed to execute git ls-remote --tags,
I tried most popular solution such as:
git config --global url."https://".insteadOf git://
and also installed msysgit to allow command prompt git as mentioned here but still getting the same error.
Has anyone faced the same issue? By the way, I'm running on Win7 64-bit machine.
Upvotes: 3
Views: 7254
Reputation: 133
Ok, found the problem. I don't know why but somehow my default folder for Git is on "H:" drive so my ".gitconfig" file is on it. I'm guessing that's why the git config --global url."https://".insteadOf git:// didn't take effect because of .gitconfig location. Everything was solved after i moved ".gitconfig" file to "C:/Users/logged in user".
Upvotes: 3