From: Jim Hill Date: Wed, 06 Jan 2021 22:25:20 GMT Subject: Re: New orphan worktree? Message-ID: In-Reply-To: On Wed, Jan 6, 2021 at 2:15 PM Junio C Hamano 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