git remove added file before commit code example
Example 1: revert git add
git reset <file> or git reset
Example 2: git remove added file to commint
git reset file-name
Example 3: how to unadd gitr file
git reset HEAD myfile.txt
git reset <file> or git reset
git reset file-name
git reset HEAD myfile.txt