2025-03-14 21:59:59 -06:00
|
|
|
# etckeeper
|
|
|
|
|
|
|
|
|
|
> Track system configuration files in Git.
|
2025-12-16 10:20:31 -07:00
|
|
|
> More information: <https://manned.org/etckeeper>.
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- 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`
|