Visual Studio - Remote: HTTP Basic: Access denied Error encountered while cloning the remote repository: Git failed with a fatal error : <p>I'm working with Visual Studio and am trying to clone a online repo from a  server where gitlab is running. Let's call the server <code>https://gitlab.example.com</code></p>

<p>I get the following error when I try to clone the repo </p>

<pre><code>Remote: HTTP Basic: Access denied
Error encountered while cloning the remote repository: Git failed with a fatal error.
Authentication failed for 'https://gitlab.example.com/username/test.git/'
</code></pre>

<p>When I try it, I get promted to enter a username and password for the server. I entered the user credentials of the user which created the repo. </p>

<p>I've found a <a href="https://stackoverflow.com/a/42690522/7580352">similar problem with an answer</a> here on stackoverflow, but this didn't work for me.</p>

<p>I am using Visual Studio 2017 Enterprise 15.7.2</p>
