Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Authentication failed on tfs server

I am having a really weird issue with git bash on windows.

When I am working in Visual Studio I have no problem working with my git repo stored in a tfs server. I just branched, committed and pushed.

But when I try to do the same (fetch, pull, push...) in my git bash I get a

fatal: Authentication failed for 'https://tfs.xxxxxxxxxx.com/defaultcollection/_git/XXXXXXXXXXX/'

I tried to delete the repo and clone it from bash, but get the same error. Deleted everything related to tfs in Web/Windows Credentials (Credential Manager) did not change anything. Also tried to use git config --global --unset credential.helper. Still no result.

Has anyone got such a problem before?

like image 423
Manny42 Avatar asked Jan 09 '17 17:01

Manny42


People also ask

What is git Credential Manager?

Git Credential Manager creates and stores credentials to access Git repositories on a host of platforms. We hold in the highest regard the need to keep your credentials and access secure. That's why we always keep your credentials stored using industry standard encryption and storage APIs.


1 Answers

Go to Control Panel -> Credential Manager -> Windows Credentials (Generic Credentials).
If there is nothing that starts with git:http..., go and ADD generic credentials:

enter image description here

like image 188
user9664011 Avatar answered Oct 03 '22 02:10

user9664011