forgot to add gitignore. how to delete the commited files code example
Example: git remove all files in gitignore
git ls-files -i -z --exclude-from=.gitignore | xargs -0 git rm --cached
git ls-files -i -z --exclude-from=.gitignore | xargs -0 git rm --cached