From dd472a3bcd6cc34be0fbf6d5419db285600af232 Mon Sep 17 00:00:00 2001 From: Adam Shand Date: Wed, 22 May 2024 07:24:27 +1200 Subject: [PATCH] chezmoi: update page (#12817) Co-authored-by: K.B.Dharun Krishna --- pages/common/chezmoi.md | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/pages/common/chezmoi.md b/pages/common/chezmoi.md index 42bf4f9155..937574742d 100644 --- a/pages/common/chezmoi.md +++ b/pages/common/chezmoi.md @@ -8,10 +8,18 @@ `chezmoi init` +- Set up `chezmoi` from existing dotfiles of a Git repository: + +`chezmoi init {{repository_url}}` + - Start tracking one or more dotfiles: `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: `chezmoi edit {{path/to/dotfile_or_symlink}}` @@ -24,10 +32,6 @@ `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: `chezmoi update`