how to clear git status

C++
$ git rm -r --cached .git rm -r --cached .
Source

Also in C++: