2016-09-08 9 views
1

私はsvnからTFS gitに移行しようとしています。ローカルディスクに新しいgitリポジトリをセットアップし、svnからすべての履歴を取得しました。今度は、コードをTFSの中央リポジトリにプッシュしたいと思います。私は、TFSの新しいレポを作成し、私は、出力が以下の通りです以下Team Foundation Server(TFS)でGitリポジトリを設定中にアンパックエラーが発生しました

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を使用しています。

ご迷惑をおかけして申し訳ありません。

ありがとうございます!

答えて

1
  1. git push origin masterと私の側で問題を再現できませんでした。軽いローカルのGitリポジトリを作成し、この問題を再現できるかどうかをテストしてみてください。

  2. --no-thin引数を使用して試してみましょう。

+0

問題は、Team Foundation Serverで必要なアクセス許可が不足していたことでした。一度に1つのファイルをプッシュすることはできましたが、一度にレポ全体をプッシュすることはできませんでした。 全く関係のないエラーメッセージに間違いがありました。助けてくれてありがとう。 – user1065969

関連する問題