Fixing corrupt .git folder