etckeeper is a tool to monitor changes to /etc with revision control systems such as git
The upside of etckeeper is the integration in various package managers such as apt or rpm. etckeeper is written in sh, supports own "plugins" via hooks and various revision control systems, including git, mercurial, bazaar, or darcs.
Usually it monitors /etc, but it can be configured to monitor other directorys as well.