git restore 和git restore – staged的区别 git restore是在工作区,也就是你电脑上的编辑器上进行修改后,撤回使用的git restore – staged 是你在git add之后提交到暂存区之后,如果你想撤回使用的。