Git restore 时间: 2021-09-09 15:46:46 git restore¶ 列子¶ 把文件从暂存区移动到工作区。 shell git restore --staged file1 file2 file3 把所有文件从暂存区移动到工作区。 shell git reset HEAD 撤销文件 shell git checkout file1 file2 撤销所有文件的修改 shell git checkout HEAD .