【问题标题】:git checkout error: unable to read askpass response in Windows 10git checkout 错误:无法在 Windows 10 中读取 askpass 响应
【发布时间】:2022-06-21 23:03:41
【问题描述】:

在 Android Studio 中克隆存储库时出错

错误:无法读取来自
'C:\Users\User\AppData\Local\Google\AndroidStudio2021.1\tmp\intellij-git-askpass-local.sh'的 askpass 响应
bash: /dev/tty: 没有这样的设备或地址
错误:无法执行提示脚本(退出代码 1)
致命:无法读取用户名

【问题讨论】:

    标签: git android-studio windows-10 android-studio-bumblebee


    【解决方案1】:

    通过以下步骤解决了上述问题:

    1. 点击Android Studio的文件菜单->设置->展开版本控制
    2. 在版本控制中,选择 Git & Check Use Credential Helper

    【讨论】:

    • 我检查过了,但是然后呢?需要发生什么?
    • 然后您再次开始结帐,它会要求输入您的凭据。
    • 使用 'git push' 和 GitLab 也可以。对我来说,这个答案可能是解决方案。
    • 它对我有用,谢谢。
    • 这个解决方案对我没有帮助。当从 github 弹出一个警告对话框时,我已经输入了登录凭据,但它仍然显示 error: unable to read askpass response from 'C:\Users\91700\AppData\Local\Google\AndroidStudio2021.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 for 'https://github.com': No such file or directory 你还有其他解决方案吗?请帮忙
    【解决方案2】:

    我只是通过使缓存无效并重新启动来解决它。

    在 Android Studio 中,点击File > Invalidate Caches... > tick all checkboxes > Click Invalidate and Restart

    【讨论】:

      【解决方案3】:

      您可以签入使用凭证助手,它可以帮助您检查您的凭证,如果您没有设置它,它会向您发送一个登录问题以进行创建凭据。 [1]:https://i.stack.imgur.com/IFG8x.png

      【讨论】:

      • 重复答案
      猜你喜欢
      • 2022-07-12
      • 1970-01-01
      • 2020-12-22
      • 2017-06-02
      • 1970-01-01
      • 2016-04-04
      • 2018-09-13
      • 1970-01-01
      相关资源
      最近更新 更多