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