how to undo changes before git add code example Example: undo git add but keep changes git reset -- FILE_NAME