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