How to remove a file from staging

How to remove a file from

staging

block-beta columns 1 block:notes space:2 f["flag to check\nfiles on staging"] space end block:command a("git") b("restore") c("--staged") d("name") end block:notes2 space g["command to restore\nthe previous state"] space h["file name"] end %% arrows %% c --> f b --> g d --> h classDef textFont font-family:'Chilanka', font-size:1.2em, font-color:#000, line-height:2em; %% styling %% classDef transparent fill:#fff, stroke:#fff; class a,b,c,d,e,f,g,h,i,j,k,l,notes,notes2,command,info transparent classDef commandFont font-family:'Borel', font-size:1.6em, line-height:2.2em; class a,b,c,d,e,k commandFont class f,g,h,i,j,l textFont