how to un add a git code example Example: how to undo git add --all git reset # Will unstage all the files you've added after your last commit