7
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

git pullで”error: corrupt loose object”を解決した話

Last updated at Posted at 2015-05-19

git pullすると突然以下のエラーが出てきた

error: corrupt loose object

見慣れないエラーなので、調べるとstackoverflowの以下にたどり着きました。
http://stackoverflow.com/questions/4254389/git-corrupt-loose-object

読み進めると、どうやら.gitフォルダが壊れているっぽいので、正しいものに差し替えなさいとのこと。

そこで、他の場所で
git clone
して、作成された.gitフォルダを丸ごとコピー

再び、git pullすると成功しました。

7
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
7
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?