我正在尝试将一些颠覆代码和历史记录放入 TFS 中。
通过 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://myusername@servername: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
这里需要注意的事项:
- 826.47 MiB 的大小似乎有点小
- 错误代码 (401) 意味着存在访问问题。
然而此时我已经验证并继续,所以这看起来有点奇怪。
有人有这里的经验吗?
经过一番搜索后我发现了这个Git - 错误:RPC 失败;结果=22,HTTP代码=401致命:远端意外挂断 https://stackoverflow.com/questions/12544142/git-error-rpc-failed-result-22-http-code-401-fatal-the-remote-end-hung-u,但是您已经尝试过(根据您的评论)。根据atlassian文档(https://confluence.atlassian.com/display/STASHKB/Git+Push+Fails+-+fatal%3A+The+remote+end+hung+up+unexpectedly 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
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)