Why TFS with GIT is not working from command line?

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

提交回复
热议问题