Bassie Bassie - 7 days ago 4x
Git Question

Authentication Fails When Cloning TFS repo with Git

I have always create local repositories using this command:

git clone http://TFSServer:8080/tfs/Scripts/_git/ProjectName

However, when I do it at the moment I get this message:

Cloning into 'ProjectName' ...

fatal: Authentication failed for 'http://TFSServer:8080/tfs/Scripts/_git/ProjectName/'

And that's it - no other details appear at all.

How can I go about resolving this?

I still have no idea what my first steps in resolving this should be, but I also have this information:

When starting up Visual Studio Code I see this error:

unable to get local issuer certificate

and when trying to push to TFS from VSCode (which I have always been able to do in the past), I see this error:

Authentication failed on the git remote

After checking the repo permissions, as Cece - MSFT suggested for the repo I am currently trying (although this is happening for all of them), I can see that I have full permissions (although my screenshot looks quite different):

enter image description here


It turns out that this only started happening after I needed to change Windows logon password.

The password was updated locally and on the TFS server, but not in the cached credentials for git.


Control Panel -> Credential Manager -> Generic Credentials

Then update the password for git:http://ServerName:1234/

Now I can successfully access the repo from command line and VS Code.