how to create an orphan branch in git code example Example: git orphan branch git checkout --orphan orphan_name