git unstage a filre code example
Example 1: unstage staged files git
git reset HEAD file_path
Example 2: Why are there two ways to unstage a file in Git?
git rm --cached <filePath>
git reset HEAD file_path
git rm --cached <filePath>