how to remove files added with git add code example Example: how to unadd gitr file git reset HEAD myfile.txt