mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-19 08:50:10 +00:00
Update cheatsheets
This commit is contained in:
29
linux/etckeeper
Normal file
29
linux/etckeeper
Normal file
@@ -0,0 +1,29 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# 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`
|
||||
Reference in New Issue
Block a user