mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-08-10 17:15:41 +02:00
chezmoi: update page (#12817)
Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
This commit is contained in:
parent
276b17c59e
commit
dd472a3bcd
1 changed files with 8 additions and 4 deletions
|
@ -8,10 +8,18 @@
|
||||||
|
|
||||||
`chezmoi init`
|
`chezmoi init`
|
||||||
|
|
||||||
|
- Set up `chezmoi` from existing dotfiles of a Git repository:
|
||||||
|
|
||||||
|
`chezmoi init {{repository_url}}`
|
||||||
|
|
||||||
- Start tracking one or more dotfiles:
|
- Start tracking one or more dotfiles:
|
||||||
|
|
||||||
`chezmoi add {{path/to/dotfile1 path/to/dotfile2 ...}}`
|
`chezmoi add {{path/to/dotfile1 path/to/dotfile2 ...}}`
|
||||||
|
|
||||||
|
- Update repository with local changes:
|
||||||
|
|
||||||
|
`chezmoi re-add {{path/to/dotfile1 path/to/dotfile2 ...}}`
|
||||||
|
|
||||||
- Edit the source state of a tracked dotfile:
|
- Edit the source state of a tracked dotfile:
|
||||||
|
|
||||||
`chezmoi edit {{path/to/dotfile_or_symlink}}`
|
`chezmoi edit {{path/to/dotfile_or_symlink}}`
|
||||||
|
@ -24,10 +32,6 @@
|
||||||
|
|
||||||
`chezmoi -v apply`
|
`chezmoi -v apply`
|
||||||
|
|
||||||
- Set up `chezmoi` from existing dotfiles of a Git repository:
|
|
||||||
|
|
||||||
`chezmoi init {{repository_url}}`
|
|
||||||
|
|
||||||
- Pull changes from a remote repository and apply them:
|
- Pull changes from a remote repository and apply them:
|
||||||
|
|
||||||
`chezmoi update`
|
`chezmoi update`
|
||||||
|
|
Loading…
Add table
Reference in a new issue