本文翻译自:How do I clear my local working directory in Git? [duplicate] This question already has an answer here: 这个问题在这里已有答案: How to remove local (untracked) files from the current Git working tree 35 answers 如何从当前Git工作树 35中 删除本地(未跟踪)文件