save¶
Save current dotfile changes to the active branch.
Example¶
dot-man save --commit -m "updated vim config" # snapshot with a message
dot-man save --dry-run # preview, change nothing
Usage¶
dot-man save --commit -m "message"
dot-man save --dry-run
dot-man save --section <name>
dot-man save --force
Behavior¶
- Scans all configured paths for changes
- Detects and strips secrets (replaced with vault tokens)
- Commits when
--commitis passed - Reports files saved, secrets detected, hooks run
Options¶
| Flag | Description |
|---|---|
--commit, -c |
Commit after saving |
--message, -m |
Commit message (requires --commit) |
--dry-run |
Preview what would be saved |
--section <name> |
Only save specific section |
--force |
Skip confirmation prompt |