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)最後看
相關文章
相關標籤/搜索