git remove file from staging without deleting code example
Example 1: git remove file from staging
git rm --cached FILE.NAME
Example 2: git remove from staging
git reset HEAD <file>
git rm --cached FILE.NAME
git reset HEAD <file>