Preserve .git folder for Git repos.