git unstage commdnd code example
Example 1: git unstage file\
# unstage file before commit
git rm --cached <file_name>
Example 2: git unstage a file
$ git reset -- README
# unstage file before commit
git rm --cached <file_name>
$ git reset -- README