git restore 还原文件状态
还原working tree: 从指定commit(默认index)
git restore [--source=] [--] <pathspec>...
还原index: 从指定commit(默认HEAD)
git restore [--source=] --staged [--] <pathspec>...
还原working tree和index: 从指定commit(默认HEAD)
git restore [--source=] --staged --worktree [--] <pathspec>...