remove specific file from git add code example
Example 1: how to remove file changes in git
git clean -df
git checkout -- .
Example 2: how to unadd gitr file
git reset HEAD myfile.txt
git clean -df
git checkout -- .
git reset HEAD myfile.txt