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


問題:

同事的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/*


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM