how to unadd files git command code example Example: how to unadd gitr file git reset HEAD myfile.txt