git restore指令和git restore --staged 的使用

一:git restore指令 (1)先用git status看一下状态 (2)打开a.c添加点内容(原本内容是aaa) (3)再用git status看一下状态 此时a.c的状态是刚刚更改过,但是还没有用git add指令添加到暂存区中,也就是说a.c目前处于工作区下。 (4)使用git restore 也就是:git restore a.c (5)用git status看一下状态 (6)最后看
相关文章
相关标签/搜索