[0] https://github.com/anishathalye/dotbot
If by dotfiles you mean variables that change per environment yet remain idempotent or monkey-patch and have to be maintained by others I would make it part of an Ansible deployment using the secrets storage or whatever the company or group uses as a standard configuration management system and secrets management so I guess it depends on ones use-case. Application dotfiles may contain secrets so they need to be stored in that environments secure storage and provably never leave that environment.