Create a new empty branch in Git 24 Jul 2023 $ git checkout --orphan NEWBRANCH $ git rm -rf . Please enable JavaScript to view the comments powered by Disqus.