git add file to gitignore after commit code example
Example 1: git ignore after commit
git rm --cached /\*.exe
Example 2: how to add filer to git ignore
go to the gitignore file, add the name of the file to ignore
git rm --cached /\*.exe
go to the gitignore file, add the name of the file to ignore