Fix: ECMDERR Failed to execute "git ls-remote –tags –heads git://", exit code of #128

When I wanted to install a bower package inside Microsoft Visual Studio 2015 update 1 (inside a corporate netwerok), I got the error:

ECMDERR Failed to execute "git ls-remote –tags –heads git://", exit code of #128


This solution:

Enter the following command on the commandline:

git config –global url."https://".insteadOf git://

Solving GitHub FetchHead (MergeConflict) in Visual Studio 2013

I was getting the error:

An error occurred. Detailed message: An error was raised by libgit2. Category = FetchHead (MergeConflict).
3 conflicts prevent checkout.





To resolve this problem, I installed the 3rd-party Git command prompt tools, then you can open a Windows git command prompt from Visual Studio 2013:




When I entered the command: git pull, I got the real error cause:




After removing these files and entering the commands:

git stash

git pull

The error was resolved.

How to do a "Get latest version" in Visual Studio 2013 for a GitHub repository.

If you are connected to a GitHub repository from Microsoft Visual Studio 2013 (see: and want to do a pull (= "Get latest version") from GitHub, just follow these steps:

1. Open Microsoft Visual Studio 2103

2. Open the Team Explorer.

3. Connect to Team project.



4. Choose the GitHub respository.



5. Once connected go to the "Unsynced Commits" tab.



6. Click on "Sync" or "Pull" button.


How to start working on a existing GitHub repository from Visual Studio 2013

If you are invited to work on a GitHub repository and you want to do so from Visual Studio 2013, then you can follow these steps:


Get the URL to the GitHub repository

Go to the repository on and copy the HTTPS clone URL or click on the copy to clipboard button:




Open Microsoft Visual Studio 2013.

Open the Team Explorer.

Click on the Clone button under "Local Git Repositries"

Enter the "clone url" from the GitHub page and enter a local folder, to store the code.




Open the code cloned and your good to go.