how to add file to gitignore after commit code example Example: git ignore after commit git rm --cached /\*.exe