How To Manage /etc with Version Control Using Etckeeper on CentOS 7
As opposed to the old standby of making copies of configuration files before making changes, etckeeper lets you keep track of modifications using a Git, Mercurial, Bazaar, or Darcs repository, just like you would do with a software development project. In addition, etckeeper integrates seamlessly with yum to automatically commit changes made to the contents of the `/etc` directory when packages are upgraded.