1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 12:44:55 +02:00
tldr/pages/linux/etckeeper.md
2019-06-07 11:12:39 +01:00

24 lines
511 B
Markdown

# etckeeper
> Track system configuration files in git.
> More information: <http://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`