2019-06-07 11:12:39 +01:00
|
|
|
# etckeeper
|
|
|
|
|
2021-01-07 14:06:38 +00:00
|
|
|
> Track system configuration files in Git.
|
2019-06-07 11:12:39 +01:00
|
|
|
> More information: <http://etckeeper.branchable.com/>.
|
|
|
|
|
2021-01-07 14:06:38 +00:00
|
|
|
- Set up a Git repo and perform various setup tasks (run from /etc):
|
2019-06-07 11:12:39 +01:00
|
|
|
|
|
|
|
`sudo etckeeper init`
|
|
|
|
|
|
|
|
- Commit all changes in /etc:
|
|
|
|
|
|
|
|
`sudo etckeeper commit {{message}}`
|
|
|
|
|
2021-01-07 14:06:38 +00:00
|
|
|
- Run arbitrary Git commands:
|
2019-06-07 11:12:39 +01:00
|
|
|
|
|
|
|
`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`
|