2014-04-04 67 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 
相關問題