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