Dotfiles: Keeping Your Settings in Git, Syncing with chezmoi or Stow and Not Leaking Secrets
There are three ways to keep dotfiles in Git: a bare repo, GNU Stow and chezmoi; with several operating systems and secrets, chezmoi leaves the least manual work. We try all three in a fake home folder: the add -A trap in a bare repo, Stow folding the .config folder and --adopt overwriting the repo, templates and .chezmoiignore in chezmoi, previewing Windows output with --override-data, age encryption and a made-up token gitleaks didn't catch.
15 Nov 2026
·
10 min
·
5