On Wed, Jan 6, 2021 at 2:15 PM Junio C Hamano <gitster@xxxxxxxxx> wrote: > not a good example to support the use of the "--orphan" option. I agree with that part, slathering infrastructure and abstractions on oneliners (okay, twoliners) is suspect in my book. worktree add, symoblic ref (really, no need to get lowlevel there, checkout --orphan does it) done. Tag an empty commit and the sequence gets closer to a legit oneliner git worktree add foo empty; git -C foo checkout --orphan newbranch