1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2024-10-28 11:19:46 +01:00
tldr/pages/linux/etckeeper.md
2024-10-12 10:02:00 +02:00

516 B

etckeeper

Track system configuration files in Git. More information: https://etckeeper.branchable.com/.

  • Set up a Git repo and perform various setup tasks (run from /etc):

sudo etckeeper init

  • Commit all changes in /etc:

sudo etckeeper commit {{message}}

  • Run arbitrary Git commands:

sudo etckeeper vcs {{status}}

  • Check if there are uncommitted changes (only returns an exit code):

sudo etckeeper unclean

  • Destroy existing repo and stop tracking changes:

sudo etckeeper uninit