git commit added git ignore afterwards code example Example: git ignore after commit git rm --cached /\*.exe