Authentication Fails When Cloning TFS repo with Git
Please check the Git repository 'ProjectName' permissions to see whether you have the Read permission, or grant your account the Read permssion:
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.
Fix
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.