In this tutorial, we are going to learn about how to undo the files from staged to the unstaged area in git.
To undo the git add for a single file before a commit, we need to run the
git reset command followed by your file name.
git reset app.js
app.js file is unstaged.
To undo the git add for all files before a commit, we need to run the
git reset command.
This above command will undo all files from the staged list.