Git failed s> fatal error. failed to read username

I have been struggling with this problem for a couple of days.

I can’t connect to my Git project (stored on VisualStudio.com) from a specific computer (it works on my second PC). Whenever I try to synchronize or clone my repository, VS2017 asks for my credentials (twice) and I get the following error:

Error: the query cannot be raised: there is no such file or directory Error while cloning the remote repository: Git failed using a fatal error. failed to read Username 'https: //.visualstudio.com': terminal prompts are disabled

I can’t remember if I changed anything that could cause this ...

+15
source share
7 answers

His mostly called credentials were remembered by the Account Manager . You must delete the credentials for xxx.visualstudio.com that were saved in Credential Manager.

For example, if the PC OS is a window, you can open Credential Manager β†’ Windows Credentials β†’ under General Credentials β†’ delete credentials such as git: https://xxx.visualstudio.com .

enter image description here

Then repeat the cloning, git will allow you to enter credentials for the repo. After entering the username (email address) and password that can access the VSTS account, the repo should be cloned successfully.

+19
source

git, Windows, , Windows VS User Dialog.

GIT Windows , : "C:\Users ()\AppData\Local\GitCredentialManager\tenant.cache".

GIT- Windows.

+11

Visual Studio . ​​ . .

+5

.

Push VS2017 , gwn-askpass.exe

, / VS2017 git-core, Git.

git-credential-manager.exe, .

.

VS2017: C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\CommonExtensions\Microsoft\TeamFoundation\Team Explorer\Git\mingw32\libexec\git-core

Git: C:\Program Files\Git\mingw64\libexec\git-core

+3

, ( , ).

Visual Studio 2017, Team Explorer .

, , /. , Visual Studio .

"" , ( 3 ), . - , !

+2

tenant.cache - *.visualstudio.com git- VS2017. VS2019. " " - ( ). "git fetch" ( ) - , .

+2

You must remove the credentials and add with the same new URL, but instead of the password for the credentials. You should use personal access tokens that you can generate git: https://xxx.visualstudio.com . β†’ Security β†’ Personal access token. You can get it by selecting an existing token and clicking to regenerate.

enter image description here

and create a new

0
source

Source: https://habr.com/ru/post/1691435/


All Articles