unstage a file from this commit to add to another commit code example
Example 1: git unstage file for commit
git reset myfilename.txt
Example 2: git unstage a file
$ git reset -- README
git reset myfilename.txt
$ git reset -- README