美文网首页
git restore指令和git restore --stag

git restore指令和git restore --stag

作者: 抄无止境 | 来源:发表于2021-05-20 16:12 被阅读0次

参考(简单明了)
git restore指令和git restore --staged 的使用

结论:
git restore指令使得在工作空间但是不在暂存区的文件撤销更改(内容恢复到没修改之前的状态)
git restore --staged的作用是将暂存区的文件从暂存区撤出,但不会更改文件的内容。

相关文章

网友评论

      本文标题:git restore指令和git restore --stag

      本文链接:https://www.haomeiwen.com/subject/iyhbjltx.html