This could lead to a potential security issue. Imagine there's a misconfiguration in your dotfiles -- now it's public.
Yadm, a thin wrapper around git allows for alternate files, encryption and templating. See my post https://news.ycombinator.com/item?id=19594859
https://github.com/thingfox/dotfiles
https://yadm.io/docs/encryption
If you rely on your configuration to be secret to be secure it's just security by obscurity and not worth much anyway.
What I had in mind is that the average person wouldn't be a target, but publicly declaring their security vulnerability would attract attacks they wouldn't receive otherwise.
The solution isn’t particularly hard either, simply source a secrets file and make sure you add that to the gitignore file.