git checkout --orphan newBranch code example Example: git orphan branch git checkout --orphan orphan_name