Why TFS with GIT is not working from command line?

后端 未结 11 1321
不思量自难忘°
不思量自难忘° 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 18:05

    For me it was that a proxy had been set in config. >git config --global --unset http.proxy made it work. Running a VM Windows Server 20196 and TFS2015 usind Kerberos (Windows Authentication).

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

    Try to use the Authentication --username and --password parameters with the command directly such as:

    git tfs clone http://tfs:8080/tfs/DefaultCollection $/Project1 -u=Domain\username -p=xxx
    

    -u, --username=VALUE stands for TFS username
    -p, --password=VALUE stands for TFS password

    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


    Visual Studio store credentials in the Windows Credential Manager, which is compatible with the Git Credential Winstore. If you install Git Credential Winstore, it should permanently authenticating with Git repositories, you can also give this tool a try.

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

    Did you change your AD password recently ?

    • If so, (or not lol), Go to Control Panel > User Accounts > Credential Manager > Windows Credentials.
    • Locate entries starting with git:http...
    • Either Remove that/those entry, or edit the password to the new one. Click on the Down Arrow and you see info about that entry, including the Remove/Edit links
    0 讨论(0)
  • 2021-02-01 18:11
    1. Remove your git credentials from Windows Control Panel (as what everyone is suggesting)

    2. If cmd still not prompting you for reentering of git credentials. e.g

    fatal: Authentication failed for ....

    You may try to uninstall your git-windows and choose the 'None' option. To avoid using a credentials helper.

    Screenshot page for None Option

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

    I did two things to make it work. Try below.

    1. Update your git to the latest version.
    2. Open Windows Credential Manager by typing the same in Windows Search and remove the git credentials in the generic credentials as shown below
    0 讨论(0)
提交回复
热议问题