git orphan branch

C++
git checkout --orphan orphan_name
Source

Also in C++: