error: bad ref for Icon
fatal: bad object refs/remotes/Icon
error: failed to run repack
Apparently OS X just created those files in
ref folder and
git was looking for them.
So I have used a command to find and recursively delete all
find . -name "Icon?" -print0 | xargs -0 rm -rf