Push failed src\main\scala\com\spark: failed with error: unable to read askpass response from 'C:

编写Scala代码后,本地仓库中的代码git到gitee时报
Push failed
src\main\scala\com\spark: failed with error: unable to read askpass response from ‘C:\Users\ma.IdeaIC2017.1\system\tmp\intellij-git-askpass.bat’
failed to execute prompt script (exit code 1)
could not read Username for ‘https://gitee.com’: No such file or directory
在这里插入图片描述
解决办法:
1.找到本地仓库:fie -> settings -> Version Control
Push failed src\main\scala\com\spark: failed with error: unable to read askpass response from 'C:_第1张图片
2.设置文件夹选项为查看隐藏文件及文件夹
3.打开本地仓库路径下.git/config文件,修改url为
url = https://[用户名]:[密码]@gitee.com/用户名/仓库名.git
Push failed src\main\scala\com\spark: failed with error: unable to read askpass response from 'C:_第2张图片
成功!!

你可能感兴趣的:(Push failed src\main\scala\com\spark: failed with error: unable to read askpass response from 'C:)