git remove added from git add code example Example 1: git remove added file to commint git reset file-name Example 2: git add and remove git add <file> git reset <file>