today-i-learnt

Create orphan branch in git

Category git
Added on 2026-03-17
Source source
$ git checkout --orphan <branch>
$ git rm -rf .
$ rm -rf .*