Could not read Password for 'https://xxxxx@bitbucket.org': terminal prompts disabled

Raghu Rudra August 23, 2018

I used bitbucket extension (latest) for visual studio 2017 (latest). Through extension in vs, I login to bitbucket successfully. Then I tried to clone a repo, it again prompts me for Atlasssian credentials. This time the user name is different than what I used to login to bitbucket. I simply use user name and password for bitbucket. Then I get following error:

 

Error encountered while cloning the remote repository: Git failed with a fatal error.
HttpRequestException encountered.
An error occurred while sending the request.
cannot spawn /c/program files (x86)/microsoft visual studio/2017/enterprise/common7/ide/commonextensions/microsoft/teamfoundation/team explorer/Git/mingw32/libexec/git-core/git-askpass.exe: No such file or directory
could not read Password for 'https://xxxxx@bitbucket.org': terminal prompts disabled

 

Can you help what is going on?

2 answers

1 accepted

10 votes
Answer accepted
Ana Retamal
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 27, 2018

Hi Raghu, welcome to the Community! 

Based on the error message you posted, looks like this is a problem with Visual Studio. I found a solution in the Visual Studio forum, you could try this: 

1. Delete this folder (backing it up in case you need to restore it):

C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\CommonExtensions\Microsoft\TeamFoundation\Team Explorer\Git

2. Uninstall all versions of Git via Control Panel / Uninstall a program.

3. Run the Visual Studio 2017 installer and modify the install to remove Git For Windows.

4. Download the latest version of Git and install it.

5. Run the Visual Studio 2017 installer again and modify the install to add Git For Windows again.

Let us know if this worked for you!

Kind regards,

Ana

Bob Darlaston October 17, 2018

Ana, that worked for me. Thanks.

Krishan Aggarwal October 30, 2018

Worked for me too. Thanks

Ana Retamal
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
November 1, 2018

Glad to hear that :) 

Have a nice day,

Ana

evernin_edilians November 7, 2018

That worked for me too, thanks a lot !

François

Artem Vysotsky November 26, 2018

same error( tried looks like all solutions over the internet( come on.., 2018... i cannot push my code(((

Kiran Marisetty December 5, 2018

Thank you! It worked for me.

Jamie Sanders January 21, 2019

Thanks Ana, worked for me too!

CloudTrackers February 20, 2019

1) Select Team Explorer

2) Choose Open Command Prompt in Action DropDown Box

3) then  type Git push command (eg : git push -u origin master)

4) it will prompt for git repository password, type password there

5) enter

Enjoy ;)

Like # people like this
JoseAntonioTE February 20, 2019

Thanks, that worked for me too!

vmampofu June 1, 2022

Worked for Visual Studio 2019 too. Thank you :)

0 votes
ghostxx7 March 12, 2019

That worked for me too, thanks.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events