remove file from local branch which has been added in git before commit code example
Example: git undo add
// undo add for one file
git reset <file>
// undo add for all files
git reset
// undo add for one file
git reset <file>
// undo add for all files
git reset