git提交报错问题

一、GIT Bash提交报错

git bash提交报错信息:
git提交报错问题_第1张图片

`唐@tt MINGW64 /d/ideaWorkSpace/service_capability_evaluate (master)
$ git push -u origin master
fatal: HttpRequestException encountered.
   ▒▒▒▒▒▒▒▒ʱ▒▒▒▒
Username for 'https://github.com': tang
remote: Invalid username or password.
fatal: Authentication failed for 'https://github.com/tang-xiaoq/MB.git/'
`

二、IDEA提交报错

idea提交报错信息:
git提交报错问题_第2张图片

`[service_capability_evaluate] git -c core.quotepath=false -c log.showSignature=false push --progress --porcelain origin refs/heads/master:master --tags
fatal: HttpRequestException encountered.
   ��������ʱ����
Invocation failed Server returned invalid Response.
java.lang.RuntimeException: Invocation failed Server returned invalid Response.
at org.jetbrains.git4idea.http.GitAskPassXmlRpcClient.askUsername(GitAskPassXmlRpcClient.java:50)
	at org.jetbrains.git4idea.http.GitAskPassApp.main(GitAskPassApp.java:64)
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.http.GitAskPassXmlRpcClient.askUsername(GitAskPassXmlRpcClient.java:47)
	... 1 more
remote: Repository not found.
fatal: Authentication failed for 'https://github.com/tang-xiaoq/MB.git/'
`

三、解决方法

网上找了下解决办法,只要到

https://github.com/microsoft/Git-Credential-Manager-for-Windows

下载Git-Credential-Manager-for-Windows,然后安装即可。

哭泣:对我无用!!

四、我的解决

1.查看状态

命令:git status
git提交报错问题_第3张图片
最后部分发现有未commit的文件
git提交报错问题_第4张图片

2.按步骤提交

命令:

git add .   //全部提交
git commit -m 写注释  //-m 后面写注释,提交原因啥的
git git push origin 分支 //分支,填你要提交的分支即可

搞定!

你可能感兴趣的:(记录)