bad object refs/stash, repository did not send all necessary objects
git fetch
やpull
ができません。--prune
オプションを付けても以下のようなエラーメッセージが出て何もできませんでした。
fatal: bad object refs/stash
error: github.com:organization/repository.git did not send all necessary objects
以下のコードを実行すると解決しました
git rm .git/refs/stash
参考:git fetchしようとしたら fatal: bad object refs/heads/master 2 - Qiita
comments powered by Disqus