For what it’s worth, when I had this problem—but when committing—I tried git-repack
and git-gc
, but neither worked. I got a permission denied error, which led me to chown
the entire repo recursively to the user I expected it to be, and I could then commit/push/pull with no problem.