
Chris Samuel <chris@csamuel.org> writes:
on Ubuntu it's less easy as you have to make sure you install etckeeper either at the same time as git or after without having bzr installed otherwise it'll configure itself to use bzr and commit automatically before you can fix it to use git).
Here are my old notes, for Ubuntu 10.04. This assumes bzr isn't installed already (bzr: not bzr_). In 14.04 you probably need to change "git-core" to "git". | aptitude install -Ryq etckeeper git-core+M bzr: | sed -i '/^VCS/s/bzr/git/' /etc/etckeeper/etckeeper.conf | etckeeper init | | Avoid spurious noise in etckeeper:: | | cd /etc | printf %s\\n lvm/archive lvm/backup >>.gitignore | git rm -rf --cached lvm/backup | git rm -rf --cached lvm/archive | | On a roaming DHCP client (i.e. laptop), also ignore resolv.conf:: | | printf %s\\n resolv.conf >>.gitignore | git rm -f --cached resolv.conf