how to unstage single file in git code example
Example 1: git unstage file for commit
git reset myfilename.txt
Example 2: unstage particular file git
git reset HEAD <file>
Example 3: git unstage a file
$ git reset -- README
git reset myfilename.txt
git reset HEAD <file>
$ git reset -- README