git ignore a file already in the repo code example Example: git ignore after commit git rm --cached /\*.exe