All cards

Card #029 · Undo

How to remove a file from staging

#029: How to remove a file from staging. git restore --staged name. git restore: command to restore the previous state. --staged: flag to check files on staging. name: file name.