zoukankan      html  css  js  c++  java
  • Jetbrains IDE无法push

    问题描述

    Jetbrains IDE(Pycharm/Clion/Intellj IDEA...)中可以进行git的add、commit操作,但是无法push,提示错误如下:

    Push failed Invocation failed Server returned invalid Response. 
    java.lang.RuntimeException: Invocation failed Server returned invalid Response. 
    at org.jetbrains.git4idea.GitAppUtil.sendXmlRequest(GitAppUtil.java:22) 
    at org.jetbrains.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 org.jetbrains.git4idea.GitAppUtil.sendXmlRequest(GitAppUtil.java:19) 
    ... 1 more unable to read askpass response from 
    'C:UsersfocksorAppDataLocalJetBrainsCLion2020.2	mpintellij-git-askpass-local.sh' 
    bash: /dev/tty: No such device or address failed to execute prompt script (exit code 1) could not read Username for 'https://gitee.com': No such file or directory
    

    与此同时,使用终端执行git push操作是不会有任何问题的。

    解决方法

    点击IDE内的File->Settings->Version Control->Gitee,如果你使用的是Github,最后一步应点击Github选项卡。这时,你可以看见右侧显示登录凭证已过期,需要重新登录,如下图所示。

    image-20200810155028597

    登录成功后,该界面应如下图所示。完成后,就可以正常执行git操作了。

    image-20200810155233208

    提示

    如果你同样遇到该问题并通过此贴解决了问题,你可以留下你的评论来提示后来人该方法是可行的。

  • 相关阅读:
    第二个月课堂016讲解接口实战之接口用例(003)
    【Postman】举例实战——天气查询
    关于soapui接口的笔记
    fiddler 进行Android/IOS代理配置抓包
    项目如何部署在linux系统上
    LINUX上安装JDK+tomcat+mysql操作笔记
    Cent OS6.5——网络配置
    vmware workstations 虚拟机安装CentOS
    解决windows64位系统上安装mysql-python报错
    新建python的虚拟环境
  • 原文地址:https://www.cnblogs.com/focksor/p/13470209.html
Copyright © 2011-2022 走看看