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