git reset initial commit

C++
git update-ref -d HEAD

Source

Also in C++: