9 lines
390 B
Markdown
9 lines
390 B
Markdown
# git clear
|
|
|
|
> 清空一个 Git 工作目录,就像是用当前分支新克隆的一样,包括 `.gitignore` 中的文件。
|
|
> 这是 `git-extras` 的一部分。
|
|
> 更多信息请查看:<https://github.com/tj/git-extras/blob/master/Commands.md#git-clear>。
|
|
|
|
- 重置所有已跟踪的文件,并删除所有未跟踪的文件,即使它们包含在 `.gitignore` 中:
|
|
|
|
`git clear` |