1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-22 01:02:09 +02:00

git-{clear, clean}: add Chinese translation (#16101)

This commit is contained in:
Ziqiang Wu 2025-04-12 15:57:10 +08:00 committed by GitHub
parent e21445163e
commit 543eac0667
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 37 additions and 0 deletions

View file

@ -0,0 +1,28 @@
# git clean
> 从工作区删除未被 Git 跟踪的文件。
> 更多信息:<https://git-scm.com/docs/git-clean>.
- 删除未跟踪的文件:
`git clean`
- 交互式删除未跟踪的文件:
`git clean {{[-i|--interactive]}}`
- 显示将被删除的文件(模拟运行,不实际删除):
`git clean {{[-n|--dry-run]}}`
- 强制删除未跟踪的文件:
`git clean {{[-f|--force]}}`
- 强制删除未跟踪的目录:
`git clean {{[-f|--force]}} -d`
- 删除未跟踪的文件(包括被忽略的文件,在 `.gitignore``.git/info/exclude`的文件):
`git clean -x`

View file

@ -0,0 +1,9 @@
# git clear
> 将 Git 工作目录清理至如同刚克隆时的状态(包含 `.gitignore` 中的文件)。
> 属于 `git-extras` 的一部分。
> 更多信息:<https://github.com/tj/git-extras/blob/master/Commands.md#git-clear>.
- 重置所有已跟踪文件并删除所有未跟踪文件(包括 `.gitignore` 中的文件):
`git clear`