Files
cheatsheet-tldr/tldr/linux/etckeeper
2025-08-17 00:22:45 +00:00

30 lines
603 B
Plaintext

---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# etckeeper
> Track system configuration files in Git.
> More information: <https://manned.org/etckeeper>.
- 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`