how to remove add file from git code example
Example 1: git remove added file
# you can undo git add before commit with:
git reset <file-name>
# or this command to unstage all due changes:
git reset
Example 2: git add and remove
git add <file>
git reset <file>