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
[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-rIm1rEgb-1586068147562)(https://imgblog.csdnimg.cn/2020040514270086.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L20wXzQ1ODE5MjUx,size_16,color_FFFFFF,t_70)]
2.设置文件夹选项为查看隐藏文件及文件夹
3.打开本地仓库路径下.git/config文件,修改url为
url = https://[用户名]:[密码]@gitee.com/用户名/仓库名.git
在这里插入图片描述
成功!!

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值