DocsCommand reference
pull
Pull the current branch on a protected repo. Puts the real values back, pulls, then re-seals with the last full scan's options.
Try it
SecretSleuth pull
SecretSleuth pull --dry-run # print the plan, change nothing
How it works
pull is branch-switch without a branch change:
- Check every protected file. If any holds edits of your own or was deleted, stop and change nothing unless
--discard-local-editsis set. - Clear
skip-worktreeand restore protected files to their committed content. The obfuscation is discarded, not stashed. git stash push -u, only your genuine local changes and only if there are any.git pull.git stash pop, if step 3 stashed something.- Re-scan with the last full scan’s options to re-obfuscate and re-protect.
Options
| Flag | Description |
|---|---|
--dry-run | Print the planned command sequence only |
--no-rescan | Skip the final re-scan (leaves files unprotected until you scan) |
--discard-local-edits | Proceed even when protected files hold your edits; those edits are lost |
--repo <path> | Repository. Default: current folder |
Check the result
Run status. Plain git pull on a protected repo fails with “Your local changes … would be overwritten”: that is skip-worktree doing its job.