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
For me it was that a proxy had been set in config. >git config --global --unset http.proxy
made it work. Running a VM Windows Server 20196 and TFS2015 usind Kerberos (Windows Authentication).
Try to use the Authentication --username
and --password
parameters with the command directly such as:
git tfs clone http://tfs:8080/tfs/DefaultCollection $/Project1 -u=Domain\username -p=xxx
-u, --username=VALUE stands for TFS username
-p, --password=VALUE stands for TFS 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
Visual Studio store credentials in the Windows Credential Manager, which is compatible with the Git Credential Winstore. If you install Git Credential Winstore, it should permanently authenticating with Git repositories, you can also give this tool a try.
Did you change your AD password recently ?
Remove your git credentials from Windows Control Panel (as what everyone is suggesting)
If cmd still not prompting you for reentering of git credentials. e.g
fatal: Authentication failed for ....
You may try to uninstall your git-windows and choose the 'None' option. To avoid using a credentials helper.
Screenshot page for None Option
I did two things to make it work. Try below.