Make sure the .git directory is excluded.