【工具-idea】git checkout error: unable to read askpass response

文章目录

  • 一. 问题描述:
  • 二. 解决方案
    • 1. 方案一
    • 2. 方案二

一. 问题描述:

更新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. 方案一

勾选并应用下图红框选项
【工具-idea】git checkout error: unable to read askpass response_第1张图片

 

2. 方案二

Invalidate Caches and Restart.
【工具-idea】git checkout error: unable to read askpass response_第2张图片

实测尝试未生效。

 
 
参考:
https://stackoverflow.com/questions/71456719/git-checkout-error-unable-to-read-askpass-response-in-windows-10

你可能感兴趣的:(工具,intellij-idea,git,java)