Restart git repo after corruption