How to fix error: index file corrupt, needs refresh in Git | DevErrors