I have always create local repositories using this command:
git clone http://TFSServer:8080/tfs/Scripts/_git/ProjectName
Cloning into 'ProjectName' ...
fatal: Authentication failed for 'http://TFSServer:8080/tfs/Scripts/_git/ProjectName/'
unable to get local issuer certificate
Authentication failed on the git remote
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.
Control Panel ->
Credential Manager ->
Then update the password for
Now I can successfully access the repo from command line and VS Code.