I want to use the git command line tools with the Microsoft Team Foundation Server Git repositories.
But every time I want to access to remote repos the authentication f
My solution
Open Control Panel > Credential Manager > Windows Credentials.
Under Generic Credentials -> Add a generic credential
Inter network address: git:https://tfs.[google].com
admin:
password:
Replace google with the domain of your company. Put your EID or credentials to log into TFS.
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
No matter, how your company use to log on windows, you just need the account which login in the TFS. You can find the account info in Windows-Control Panel- Credential Manager
by PatrickLu-MSFT
This is what did it for me. I just opened the Windows Credential Manager as stated above and edited the credentials because some how it was stuck to my previous password.
If you face this error after changing password for TFS,
Go to Control Panel\User Accounts\Credential Manager
Under the Windows Credentials, Modify the password for the specific Internet or network address.
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
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.