etckeeper
From wiki
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
etckeeper is a program that will keep the content of the /etc
directory in a git repository. It allows to check history of config files in case you need it later.
Install
$ sudo apt install etckeeper
This will install and configure etckeeper.
For more information, check the official README.