I recently built a TFS 2018 server and set it up as git. For a few months, things have been working fine until last week when I started seeing the following error:
C:\temp\git>git clone https://tfs.mycompany.com/project/team/_git/framework
Cloning into 'framework'...
fatal: Authentication failed for 'https://tfs.mycompany.com/project/team/_git/framework/'
After nearly a week of troubleshooting, I am no closer to finding out the root cause of the problem. Everything I've tried results in the same error. All solutions I found on the net and within SO have not worked, i.e. deleting git folder, uninstalling git, reinstalling git, deleting .cache file, whatever... made no difference.
Today I discovered that I can use the git for windows client against our old TFS 2015 instance and github without any errors so this appears to be a TFS 2018 only issue. I've searched and searched for any security settings that might have changed, but cannot find anything security related that I can change that would affect it in this manor. I also checked the server cert and it appears to be valid for another year, so I don't think it's that.
I also discovered that Visual Studio 2015 can clone and sync with the TFS 2018 server - no authentication errors. Clearly it has it's own built-in git client unaffected by whatever is causing the auth issues with the git client for windows. Visual Studio 2017 throws the same error as git for windows client, so I'm guessing it uses that client under the hood, unlike vs2015.
At the moment, I'm using the most recent git for windows client and it's the only client installed (other than vs2015) - removed all other git clients, i.e. TortoiseGit. Also note, that I've deleted any windows creds for the TFS 2018 server and I'm never prompted for a username or password as Microsoft's articles would suggest. I'm not prompted for creds for the TFS 2015 server either, but credential manager has valid credentials for that server.
Does anyone have a clue as to what could be wrong here? Our server is completely useless at this time as nobody can sync changes.