how to delete files from git add code example Example 1: git remove added file to commint git reset file-name Example 2: how to unadd gitr file git reset HEAD myfile.txt