是否有git命令来还原工作树和索引中所有未提交的更改,并还删除新创建的文件和文件夹?
You can run these two commands:
(您可以运行以下两个命令:)
# Revert changes to modified files. git reset --hard # Remove all untracked files and directories. # '-f' is force, '-d' is remove directories. git clean -fd
2.1m questions
2.1m answers
60 comments
57.0k users