Why TFS with GIT is not working from command line?

后端 未结 11 1320
不思量自难忘°
不思量自难忘° 2021-02-01 17:47

I want to use the git command line tools with the Microsoft Team Foundation Server Git repositories.

But every time I want to access to remote repos the authentication f

相关标签:
11条回答
  • 2021-02-01 17:48

    My solution

    Open Control Panel > Credential Manager > Windows Credentials.

    Under Generic Credentials -> Add a generic credential

    Inter network address: git:https://tfs.[google].com

    admin:

    password:

    Replace google with the domain of your company. Put your EID or credentials to log into TFS.

    0 讨论(0)
  • 2021-02-01 17:49

    Windows Credentials -> Generic Credentials

    Then add a new item with "git:" in front of the http:// i.e.:

    git:http://Example.com

    add domain\user as user, and password

    0 讨论(0)
  • 2021-02-01 17:54

    No matter, how your company use to log on windows, you just need the account which login in the TFS. You can find the account info in Windows-Control Panel- Credential Manager

    by PatrickLu-MSFT

    This is what did it for me. I just opened the Windows Credential Manager as stated above and edited the credentials because some how it was stuck to my previous password.

    0 讨论(0)
  • 2021-02-01 18:01

    If you face this error after changing password for TFS,

    Go to Control Panel\User Accounts\Credential Manager

    Under the Windows Credentials, Modify the password for the specific Internet or network address.

    0 讨论(0)
  • 2021-02-01 18:05

    Finally a collegue hit the solution and I will post it here:

    Use the command:

    git config --global credential.http://[tfs_server].integrated true
    

    Of course, replace [tfs_server] with your own TFS server host name.

    When Credential Manager asks for credentials just leave blanks and press OK. (I this way authentication will be performed using Kerberos).

    Check here for more information https://github.com/Microsoft/Git-Credential-Manager-for-Windows#q-i-thought-microsoft-was-maintaining-this-why-does-the-gcm-not-work-as-expected-with-tfs

    0 讨论(0)
  • 2021-02-01 18:05

    For myself, I went to Control Panel > Credential Manager > Windows Credentials.

    I tried to delete only the Generic Credentials with git: in front of them, but the git commands still didn't work.

    After I deleted the Windows Credentials for the TFS server, then the git commands started to work.

    0 讨论(0)
提交回复
热议问题