How can I authenticate to our TFS server in my Git for Windows client?

前端 未结 2 1908
猫巷女王i
猫巷女王i 2021-01-16 13:39

We have a TFS 2017 server setup on our corporate domain. I want to use the Git for Windows CMD line to push and pull code from a repo on that TFS server.

I have adde

相关标签:
2条回答
  • 2021-01-16 14:15

    First suggest you Use Git Credential Managers to Authenticate to Visual Studio Team Services

    When you connect to a TFS Git repository from your Git client for the first time, the credential manager will prompt for your credentials.

    Another option is using SSH key authentication

    Connect to your Git repos through SSH when you can't use the recommended Git Credential Managers or Personal Access Tokens to securely connect using HTTPS authentication.

    0 讨论(0)
  • 2021-01-16 14:29

    Make sure you don't have a credential helper which might have cached the wrong credentials.

    Check git config -l for any credential.helper line.

    With recent Git for Windows, you would be using the Microsoft Git Credential Manager, linked to the Credential Manager in Windows

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