git更新的bug

文章目录

  • [1. 问题](#1. 问题)
  • [2. 分析](#2. 分析)

1. 问题

拉取了一个项目后遇到了这个问题,

nvocation failed Server returned invalid Response. java.lang.RuntimeException: Invocation failed Server returned invalid Response. at git4idea.GitAppUtil.sendXmlRequest(GitAppUtil.java:22) at git4idea.http.GitAskPassApp.main(GitAskPassApp.java:56) Caused by: java.io.IOException: Server returned invalid Response. at org.apache.xmlrpc.LiteXmlRpcTransport.sendRequest(LiteXmlRpcTransport.java:242) at org.apache.xmlrpc.LiteXmlRpcTransport.sendXmlRpc(LiteXmlRpcTransport.java:90) at org.apache.xmlrpc.XmlRpcClientWorker.execute(XmlRpcClientWorker.java:72) at org.apache.xmlrpc.XmlRpcClient.execute(XmlRpcClient.java:194) at org.apache.xmlrpc.XmlRpcClient.execute(XmlRpcClient.java:185) at org.apache.xmlrpc.XmlRpcClient.execute(XmlRpcClient.java:178) at git4idea.GitAppUtil.sendXmlRequest(GitAppUtil.java:19) ... 1 more unable to read askpass response from 'C:\Users\YUEXU\AppData\Local\JetBrains\IntelliJIdea2021.3\tmp\intellij-git-askpass-local.sh' bash: line 1: /dev/tty: No such device or address failed to execute prompt script (exit code 1) could not read Username for 'https://codeup.aliyun.com': No such file or directory

说明什么,这个错误表明 IntelliJ IDEA 的 Git 集成 在尝试访问 Git 仓库时遇到了 认证问题,特别是当尝试从 https://codeup.aliyun.com(阿里云 Codeup)拉取或推送代码时。

错误的关键信息:

Server returned invalid Response → Git 服务器返回了无效的响应(可能是认证失败或代理问题)。
unable to read askpass response → IntelliJ 的 Git 认证辅助脚本 (intellij-git-askpass-local.sh) 无法执行。

could not read Username for 'https://codeup.aliyun.com' → Git 无法获取用户名(可能未正确配置凭据)。

2. 分析

因为你当下的git没有权限,所以导致无法更新。我们更新一下账户就好了。

在setting中,搜索 密码/password 就行。

先点击不保存,然后重启。

你再次更新就会出现一个弹窗,需要你填写一下,然后填写有权限的账号,接着再找到这个界面,点击保存就行。

相关推荐
刘火锅7 小时前
Bug 记录:SecureRandom.getInstanceStrong()导致验证码获取阻塞
spring boot·spring·spring cloud·bug
一起去改变世界16 小时前
卸载或重装软件提示缺少msi的解决方法(软件卸载功能修复)
windows·bug·美女
wdfk_prog1 天前
实战教程:从“对象文件为空“到仓库重生——修复 Git 仓库损坏全记录
大数据·网络·笔记·git·学习·elasticsearch·全文检索
ALex_zry1 天前
Git Status 命令深度指南:洞悉仓库状态的核心艺术
大数据·git·elasticsearch
啃火龙果的兔子1 天前
如何在 VS Code 中进行 `cherry-pick`
git
夜里慢慢行4561 天前
git工程多个remote 拉取推送
git
啃火龙果的兔子2 天前
Git `cherry-pick` 工具汇总
git
ALex_zry2 天前
Git 乱码文件处理全流程指南:从识别到彻底清除
git·elasticsearch·搜索引擎
李梦晓2 天前
git 提交代码到别的分支
前端·git
思绪漂移2 天前
更改CodeBuddy的默认terminal为Git Bash
git·bash·terminal·codebuddy