Reputation: 345
Trying to clone a repo from a TFS server (local network) and getting the error 403 instead of being prompted for a username and password.
I have tried different things. So far
git config --global user.email "[email protected]"
git config --global user.name "Domain\Username"
git config --global http.proxy http://y.y.y.y:8080
Cloning into 'app-dlls'...
fatal: unable to access 'http://x.x.x.x:8080/tfs/DefaultCollection/Project/_git/project1/': The requested URL returned error: 403
Other machines in the same network have no problems accessing the same repo and are being prompted for credentials.
Note that I'm using VS Code (not visual studio), however I assume that git should work on its own by just cloning from the command prompt. Same errors if I try the GUI application.
Anyone has any idea?
Upvotes: 1
Views: 679
Reputation: 1324218
Check first your git config credential helper
(explained here): if it is set to "manager
", it is possible that credentials were cached by the Windows Credential Manager.
You can open said Windows Credential Manager to check for any http://x.x.x.x:8080
entry.
Upvotes: 1