how to drop added files before commiting in git code example Example: how to unadd gitr file git reset HEAD myfile.txt