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