add new chinese translations

This commit is contained in:
2024-12-30 15:25:56 +08:00
parent a850046d7b
commit 0d798759fd
5418 changed files with 105800 additions and 7052 deletions

View File

@@ -0,0 +1,32 @@
# gitleaks
> 检测在 Git 仓库中泄露的秘密和 API 密钥。
> 更多信息:<https://github.com/gitleaks/gitleaks>。
- 扫描远程仓库:
`gitleaks detect --repo-url {{https://github.com/username/repository.git}}`
- 扫描本地目录:
`gitleaks detect --source {{path/to/repository}}`
- 将扫描结果输出到 JSON 文件:
`gitleaks detect --source {{path/to/repository}} --report {{path/to/report.json}}`
- 使用自定义规则文件:
`gitleaks detect --source {{path/to/repository}} --config-path {{path/to/config.toml}}`
- 从特定提交开始扫描:
`gitleaks detect --source {{path/to/repository}} --log-opts {{--since=commit_id}}`
- 在提交之前扫描未提交的更改:
`gitleaks protect --staged`
- 显示详细输出,指示扫描过程中识别为泄露的部分:
`gitleaks protect --staged --verbose`