git ignore already pushed file
git rm -r --cached . git add . git commit -m "update gitignore"
Here is what the above code is Doing:
1. git rm -r –cached .
– Remove everything from the index.
2. git add .
– Re-add everything.
3. git commit -m “update gitignore”
– Commit the changes.