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