Skip to content

Instantly share code, notes, and snippets.

@agam
Last active August 29, 2015 14:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save agam/2cda8597966f49a04e07 to your computer and use it in GitHub Desktop.
Save agam/2cda8597966f49a04e07 to your computer and use it in GitHub Desktop.
Set up `etckeeper`
$ sudo apt-get install etckeeper
# Modify VCS to `git` (not necessary on Debian, AFAICS)
$ sudo vi /etc/etckeeper/etckeeper.conf
$ cd /etc
$ sudo git log
# Should show "...blah blah blah ... Initial Commit"
# On Ubuntu, might need to explicitly run `sudo git commit -a -m 'Initial commit`
# Fully integrated with APT
$ sudo git log
# will show something like "... committing changes in /etc after apt run ..."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment