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