git create branch without initial commit

C++
git checkout --orphan <name_you_choose_for_orphan_branch>
git commit

Source

Also in C++: