一. 问题描述:
更新idea到2023.2版本之后,拉取公司内部代码出现如下报错:
git checkout error: unable to read askpass response
error: unable to read askpass response from
'\User\AppData\Local\Google\AndroidStudio2023.2\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
二. 解决方案
1. 方案一
勾选并应用下图红框选项
2. 方案二
Invalidate Caches and Restart.
实测尝试未生效。
参考:
https://stackoverflow.com/questions/71456719/git-checkout-error-unable-to-read-askpass-response-in-windows-10