For all unstaged files in current working directory use:
(对于当前工作目录中的所有未暂存文件,请使用:)
git checkout -- .
For a specific file use:
(对于特定文件,请使用:)
git checkout -- path/to/file/to/revert
--
here to remove argument ambiguation .
(--
在这里消除争论的歧义 。)
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…