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