mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-29 23:24:55 +02:00
9 lines
353 B
Markdown
9 lines
353 B
Markdown
# git clear
|
|
|
|
> 将 Git 工作目录清理至如同刚克隆时的状态(包含 `.gitignore` 中的文件)。
|
|
> 属于 `git-extras` 的一部分。
|
|
> 更多信息:<https://github.com/tj/git-extras/blob/master/Commands.md#git-clear>.
|
|
|
|
- 重置所有已跟踪文件并删除所有未跟踪文件(包括 `.gitignore` 中的文件):
|
|
|
|
`git clear`
|