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

问题:

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

error: unable to read askpass response from 'xxxintellij-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

例如:

[remote "origin"]
     url = http://longweiqiang:123456@github.com/xxxx/project.git
     fetch = +refs/heads/*:refs/remotes/origin/*
原文地址:https://www.cnblogs.com/longweiqiang/p/13852352.html