Fix: ECMDERR Failed to execute "git ls-remote –tags –heads git://github.com/systemjs/systemjs.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://github.com/systemjs/systemjs.git", exit code of #128

 

This solution: http://stackoverflow.com/questions/21789683/how-to-fix-bower-ecmderr

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.

 

 

image

 

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: http://msdn.microsoft.com/en-us/library/vstudio/dd286572.aspx#commands

 

image

 

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

 

image

 

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: https://www.roelvanlisdonk.nl/?p=3773) 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.

image

 

4. Choose the GitHub respository.

image

 

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

image

 

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

image

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 GitHub.com and copy the HTTPS clone URL or click on the copy to clipboard button:

image

 

 

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.

 

image

 

Open the code cloned and your good to go.