mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-08-08 14:35:41 +02:00
etckeeper: add page (#3076)
This commit is contained in:
parent
67e7be9650
commit
cce15d0b1a
1 changed files with 24 additions and 0 deletions
24
pages/linux/etckeeper.md
Normal file
24
pages/linux/etckeeper.md
Normal file
|
@ -0,0 +1,24 @@
|
|||
# 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`
|
Loading…
Add table
Reference in a new issue