remove files from staging code example
Example 1: remove frmo staging git
git reset HEAD -- filename
Example 2: git remove staged area
$ git reset HEAD file
# Or everything
$ git reset HEAD .
git reset HEAD -- filename
$ git reset HEAD file
# Or everything
$ git reset HEAD .