git checkout error: unable to read askpass response in Windows 10

Viewed 14962

Error occurred while cloning repository in Android Studio

error: unable to read askpass response from
'C:\Users\User\AppData\Local\Google\AndroidStudio2021.1\tmp\intellij-git-askpass-local.sh'
bash: /dev/tty: No such device or address
error: failed to execute prompt script (exit code 1)
fatal: could not read Username

4 Answers

Resolved above issue with below steps:

  1. Click on the File Menu of Android Studio -> Settings -> Expand Version Control
  2. Inside Version Control, select Git & Check Use Credential Helper

enter image description here

I simply resolved it by doing Invalidate Caches and Restart.

In Android Studio, Click on File > Invalidate Caches... > tick all checkboxes > Click Invalidate and Restart

I simply resolved it by doing Invalidate Caches and Restart.

In Android Studio, Click on File > Invalidate Caches... > tick all checkboxes > Click Invalidate and Restart

this worked for me.

You can check in Use credential helper which helps you check your credential and if you didn't set up that before it would send you a question to login for create credential. [1]: https://i.stack.imgur.com/IFG8x.png

Related