gitleaks
Verified for current stable LTS
Gitleaks Commands
Gitleaks command syntax with verified terminal examples.
Commands
7 commands for Gitleaks
gitleaks HTTP
Gitleaks Command: Scan Remote Repository
gitleaks detect --repo-url {https://github.com/username/repository.git} gitleaks Operations
Gitleaks Command: Scan Local Directory
gitleaks detect -s <path/to/repository> gitleaks HTTP
Gitleaks Command: Output Scan Results To Json
gitleaks detect -s <path/to/repository> --report <path/to/report.json> gitleaks Operations
Gitleaks Command: Use Custom Rules File
gitleaks detect -s <path/to/repository> --config-path <path/to/config.toml> gitleaks Archive
Gitleaks Command: Start Scanning From Specific Commit
gitleaks detect -s <path/to/repository> --log-opts <--since=commit_id> gitleaks Operations
Gitleaks Command: Scan Uncommitted Changes Before Commit
gitleaks protect --staged gitleaks Operations
Gitleaks Command: Display Verbose Output
gitleaks protect --staged --verbose Suggest a Gitleaks Command
Submit missing workflows, corrections, or verified alternatives for this tool.
FAQ
Coverage: Focused examples for common Gitleaks workflows.
Verified version: current stable LTS.
Verification: Test commands in a disposable workspace and submit notes for edge cases.