unstage all files git code example
Example 1: git unstage file for commit
git reset myfilename.txt
Example 2: git unstage file\
# unstage file before commit
git rm --cached <file_name>
git reset myfilename.txt
# unstage file before commit
git rm --cached <file_name>