问题:

同事的Pychram连接公司的代码仓库,push、pull都一直不成功,查看git log发现提示如下错误

error: unable to read askpass response from 'xxx\intellij-git-askpass.bat' bash: /dev/tty: No such device or address

git提示error: unable to read askpass response from 'xxx\intellij-git-askpass.bat' bash: /dev/tty: No such device or address

原因:

缺少用户认证信息

解决办法:

1、在 .git 的 config 配置文件中的请求串中加入用户身份的认证信息
https://[userName]:[password]@github.com/xxx/project.git
2、也可在Pychram中直接修改,路径为如下
VCS-Git-Remotes

git提示error: unable to read askpass response from 'xxx\intellij-git-askpass.bat' bash: /dev/tty: No such device or address

例如:

[remote "origin"]
     url = http://longweiqiang:123456@github.com/xxxx/project.git
     fetch = +refs/heads/*:refs/remotes/origin/*

相关文章:

  • 2021-09-21
  • 2022-12-23
  • 2021-09-22
  • 2022-12-23
  • 2021-12-07
  • 2022-12-23
  • 2021-08-20
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-26
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案