2014-04-04 68 views
13

我想获得一些Subversion代码 - 和历史到TFS中。Git错误; RPC失败;结果= 22,HTTP代码= 401

通过GIT去似乎是一个速赢,并按照以下网址的步骤:

http://www.incyclesoftware.com/2013/08/how-easy-its-to-migrate-svn-to-tfs-2013-git-repo/ 

我所取得的进展,并导入我的测试SVN仓库变成了“本地” git的实例。但是,当我尝试将其推送到TFS时,出现错误。

TFS本身是指导我如何 '推动现有资源库'

git remote add origin 
http://servername:8080/tfs/DefaultCollection/_git/TestDVCS3 git push -u origin --all 

本地Git仓库〜3GB

这是消息我得到

Username for 'http://servername:8080': myusername 
Password for 'http://[email protected]:8080': 
Counting objects: 145003, done. 
Delta compression using up to 2 threads. 
Compressing objects: 100% (40421/40421), done. 
Writing objects: 100% (145003/145003), 826.47 MiB | 919.00 KiB/s, done. 
Total 145003 (delta 98198), reused 135297 (delta 89983) 
error: RPC failed; result=22, HTTP code = 401 
fatal: The remote end hung up unexpectedly 
fatal: The remote end hung up unexpectedly 
Everything up-to-date 

事这里要注意:

  1. 826.47 MIB的尺寸似乎有点低
  2. 错误代码(401)意味着有一个访问问题。
    但是在这一点上,我已经认证并继续,看起来有点奇怪。

有没有人在这里的经验吗?

+1

嗨,因为我已经发现这一点:http://support.microsoft.com/kb/2867441/en-us这似乎基本上描述了这个问题。但是,这是IIS 7 ..我们在8.something。任何人都经历过这个? –

+0

对此的更新:上述问题是针对502错误 - 而不是我遇到的401(.2),因此它不相关。 –

+1

我也遇到了同样的问题。还有更多的线索? –

回答

2

有点搜索,我发现这个Git - error: RPC failed; result=22, HTTP code = 401 fatal: The remote end hung up unexpectedly后,但是你已经尝试过(根据您的评论)。根据atlassian文档(https://confluence.atlassian.com/display/STASHKB/Git+Push+Fails+-+fatal%3A+The+remote+end+hung+up+unexpectedly),您得到的原因错误是postBuffer的大小,您需要增加它。

增加Git的缓冲区大小,以你的回购的最大单个文件大小:

git config --global http.postBuffer 157286400 
相关问题