是否有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
1.4m articles
1.4m replys
5 comments
57.0k users