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