find .git/ -exec stat --format="%G %n" {} + |grep root chown -R $(id -un):$(id -gn) .git/objects/ git commit -a -m "fixed git objects ownership"