本文介绍了Git错误:RPC失败;结果= 22,HTTP代码= 404的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在OSX上使用SourceTree,并使用Gi​​t推送到Visual Studio Online.我收到以下错误:

I'm using SourceTree on OSX and using Git to push to Visual Studio Online. I get the following error:

我已经尝试了以下方法:

I have already tried the following:

git config --global http.postBuffer 524288000

推荐答案

我刚遇到一个非常相似的错误(此答案是Google的最高结果)-解决方案是@Liviu Chircu的评论

I just ran into a very similar error (for which this answer is the top google result) - the solution was in a comment by @Liviu Chircu

解决方案是将.git放在网址末尾

The solution was to put the .git on the end of the url

git clone http://myURL/projectname
Cloning into 'projectname'...
error: RPC failed; result=22, HTTP code = 404
fatal: The remote end hung up unexpectedly

但是:

git clone http://myURL/projectname.git

成功.

奇怪的是,没有.git的原始URL在两台Linux计算机和Windows桌面上都成功,但是在第三台Linux计算机上却失败了.包括.git使其可以在所有计算机上使用.

The strange thing is that the original URL without .git succeeded on two linux machines and a windows desktop, but failed on a third linux machine. Including .git makes it work on all machines.

这篇关于Git错误:RPC失败;结果= 22,HTTP代码= 404的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-24 04:43