SecretSleuth Talk to IronTech

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:

  1. Check every protected file. If any holds edits of your own or was deleted, stop and change nothing unless --discard-local-edits is set.
  2. Clear skip-worktree and restore protected files to their committed content. The obfuscation is discarded, not stashed.
  3. git stash push -u, only your genuine local changes and only if there are any.
  4. git pull.
  5. git stash pop, if step 3 stashed something.
  6. Re-scan with the last full scan’s options to re-obfuscate and re-protect.

Options

FlagDescription
--dry-runPrint the planned command sequence only
--no-rescanSkip the final re-scan (leaves files unprotected until you scan)
--discard-local-editsProceed 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.