git unstage local file code example
Example 1: git unstage file\
# unstage file before commit
git rm --cached <file_name>
Example 2: unstage particular file git
git reset HEAD <file>
# unstage file before commit
git rm --cached <file_name>
git reset HEAD <file>