Thread (13 messages) flat view 13 messages, 5 authors, 2021-02-23

Re: New orphan worktree?

From: Jim Hill <hidden>
Date: 2021-01-06 20:34:25

On Wed, Jan 6, 2021 at 11:48 AM Elijah Newren [off-list ref] wrote:
The rm command presumes the file-backend for refs.  That might not
work in the future with reftable.
True dat. The pure way is

    git worktree add newbranch $(git commit-tree `git mktree <&-` <&-)
    git -C newbranch symbolic-ref HEAD refs/heads/newbranch
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help