how to do empty branch code example Example: git create empty branch git checkout --orphan <branchname> git rm --cached -r .