【发布时间】:2017-01-16 15:18:17
【问题描述】:
我正在尝试从 svn 迁移到 TFS git。我在本地磁盘中设置了一个新的 git 存储库,并且我拥有来自 svn 的所有历史记录。现在我想将代码推送到 TFS 中的集中式 Repo。我在 TFS 中创建了一个新的 Repo,并尝试了以下操作
git remote add origin http://remoteserver:8080/tfs/DefaultCollection/MyProject/_git/MyRepo
git push -u origin --all
输出如下:
$ git push -u origin --all
Counting objects: 1801, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (1743/1743), done.
Writing objects: 100% (1801/1801), 5.72 MiB | 1.28 MiB/s, done.
Total 1801 (delta 830), reused 0 (delta 0)
remote: Analyzing objects... (1801/1801) (4585 ms)
error: unpack failed: error File upload already completed.
remote: Storing packfile...
To http://remoteserver:8080/tfs/DefaultCollection/MyProject/_git/MyRepo
! [remote rejected] master -> master (File upload already completed.)
error: failed to push some refs to 'http://remoteserver:8080/tfs/DefaultCollection/MyProject/_git/MyRepo'
我不确定错误是什么,也无法在线找到任何帮助。我在 Windows 上使用 32 位 Git 2.10.0。
非常感谢任何帮助。
谢谢!
【问题讨论】: