I want to use git as a version control for my system configuration. So I initialized a git repo in "/". However on every reboot my .git directory is deleted by the os: Raspbian.
However the .gitignore is not deleted.
On my desktop (Gentoo Linux) I do not have this problem.
Why is this happening? How can I prevent this behavior?
Update: I tested further and it seems: The system removes any dotted (hidden) directories in "/" but not files
I will use git submodules, so please do not suggest to init repos per dirs like /etc. I really want all of my configs in a git repo and some hierarchically nested repos (submodule) inside it.