git ignore after commit

C++
git rm --cached /\*.exe

Source

Also in C++: