問題:
同事的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
原因:
缺少用戶認證信息
解決辦法:
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/*