#undo "git add" command before commit git reset #for removing all files git reset "file" #for one file #freecodecamp : How to Undo a Git add