git restore all staged files code example
Example 1: git show staged files
git diff --name-only --cached
Example 2: how to remove all files from staging area git
git rm --cached -r .
Example 3: unstage staged files git
git reset HEAD file_path
Example 4: git remove staged area
$ git reset HEAD file
# Or everything
$ git reset HEAD .