Why TFS with GIT is not working from command line?

Windows Credentials -> Generic Credentials

Then add a new item with "git:" in front of the http:// i.e.:

git:http://Example.com

add domain\user as user, and password


Finally a collegue hit the solution and I will post it here:

Use the command:

git config --global credential.http://[tfs_server].integrated true

Of course, replace [tfs_server] with your own TFS server host name.

When Credential Manager asks for credentials just leave blanks and press OK. (I this way authentication will be performed using Kerberos).

Check here for more information https://github.com/Microsoft/Git-Credential-Manager-for-Windows#q-i-thought-microsoft-was-maintaining-this-why-does-the-gcm-not-work-as-expected-with-tfs


I did two things to make it work. Try below.

  1. Update your git to the latest version.
  2. Open Windows Credential Manager by typing the same in Windows Search and remove the git credentials in the generic credentials as shown below enter image description here

For myself, I went to Control Panel > Credential Manager > Windows Credentials.

I tried to delete only the Generic Credentials with git: in front of them, but the git commands still didn't work.

After I deleted the Windows Credentials for the TFS server, then the git commands started to work.