how to remove already committed file in git code example
Example 1: git ignore remove
git rm -r --cached .
git add .
git commit -m "Removing all files in .gitignore"
Example 2: git remove added file to commint
git reset file-name
git rm -r --cached .
git add .
git commit -m "Removing all files in .gitignore"
git reset file-name