私の友人と私は、プロジェクトに git を使用しようとしています。それは彼のサーバーでホストされており、次のように git clone します。
git clone username@IP.ADD.RE.SS:/path/to/git/repos.git
かなり標準的なもので、しばらくの間はうまく機能します。しかし、私たちの 1 人が 100MB 程度の大きなコミット (git は非常にうまく処理できると思われます) を追加するたびに、git リポジトリは壊れてしまいます。基本的に、この時点で新しい変更をプッシュしたり、他の変更をプルしたりできるようになりますが (私はそう思います)、上記のコマンドを使用してリポジトリを新しい場所にクローンしようとすると、次のようなエラー メッセージが表示されます。
$git clone username@IP.ADD.RE.SS:/path/to/git/repos.git
Initialized empty Git repository in /local/path/to/repos/.git/
remote: Counting objects: 1455, done.
remote: Compressing objects: 100% (1235/1235), done.
error: git upload-pack: git-pack-objects died with error.s
fatal: git upload-pack: aborting due to possible repository corruption on the remote side.
remote: aborting due to possible repository corruption on the remote side.
fatal: early EOF
fatal: index-pack failed
これは現在 3 ~ 4 回発生しており、大きなコミットを追加するときは常に発生しています。なぜこれが起こっているのですか?どうすれば修正できますか?私たちは両方とも Mac OSX Snow Leopard を使用しています。
ありがとう!-M