how unstage 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>
Example 3: Why are there two ways to unstage a file in Git?
git rm --cached <filePath>
Example 4: git unstage a file
$ git reset -- README