git remove modified file from commit code example Example: git remove added file to commint git reset file-name