git hapus sebelum komit

#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
A DG