Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Accessing TFS git repository always prompts for username and password from outside of Visual Studio

I have set up a Team Foundation Server 2013 which natively supports git as source control. I have successfully created a project called "TestTeamProject". I set up 2 users for the TFS which are 2 domain users.

Pusing/pulling from Visual Studio 2013 onto that works fine. But when i try to push/pull from the command line or Git Extensions tool, a console window will pop up EVERY TIME asking for username and password with

Username for 'http://myTFS:8080':
Password for 'http://example-username@myTFS:8080':

i tried to set up at least the username in git extensions / git settings, he still promts for both of them.

i have used git before only via ssh where i then can generate a file that gets used for the credentials, but TFS does not support SSH protocol, so is there some way to be able to use TFS with git without needing to enter the credentials all the time when i push/pull from outside visual studio?

git-tfs is not what i am looking for, because we want to use the native git support of TFS.

we need to be able to use git outside of visual studio because not the whole development team is .NET based!

Any ideas what i could do?

like image 639
schmendrick Avatar asked Jul 14 '14 12:07

schmendrick


1 Answers

Visual Studio should store credentials in the Windows Credential Manager, which is compatible with the Git Credential Winstore. If you install Git Credential Winstore, it should no longer prompt you at the command-line.

like image 122
Edward Thomson Avatar answered Sep 25 '22 00:09

Edward Thomson