git cli remove staged file code example
Example 1: remove staged files git
git reset HEAD -- path/to/file
#To reset everything
git reset HEAD -- .
Example 2: remove staged files
git reset HEAD -- .
git reset HEAD -- path/to/file
#To reset everything
git reset HEAD -- .
git reset HEAD -- .