gitigore rm cache

C++
git rm -r --cached .

Source

Also in C++: