how to unadd gitr file

Shell
git reset HEAD myfile.txt

Source

Also in Shell: