update
Pull changes from the source repo and apply any changes.
If update.command is set then chezmoi will run update.command with
update.args in the working tree. Otherwise, chezmoi will run git pull
--autostash --rebase [--recurse-submodules] , using chezmoi's builtin git if
useBuiltinGit is true or if git.command cannot be found in $PATH.
Flags
-a, --apply
Apply changes after pulling, true by default. Can be disabled with --apply=false.
--recurse-submodules
Update submodules recursively. This defaults to true. Can be disabled with --recurse-submodules=false.
Common flags
-x, --exclude types
Exclude entries of type types,
defaults to none.
-i, --include types
Only add entries of type types,
defaults to all.
--init
Recreate config file from template.
-P, --parent-dirs
Also perform command on all parent directories of target.
-r, --recursive
Recurse into subdirectories, true by default. Can be disabled with --recursive=false.
Examples
$ chezmoi update