emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: git: how to restore a deleted worktree?


From: Stephen Leake
Subject: Re: git: how to restore a deleted worktree?
Date: Thu, 04 Jan 2018 16:04:25 -0600
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.90 (windows-nt)

Noam Postavsky <address@hidden> writes:

> On Thu, Jan 4, 2018 at 8:51 AM, Stephen Leake
> <address@hidden> wrote:
>
>> At some point, that worktree was in a confusing state, so I deleted it,
>> intending to do a fresh checkout. So I repeated the above command, but
>> it complained "branch emacs-26 already exists".
>
> You need 'git worktree prune' to make git remove the bookkeeping info
> about that deleted worktree (possibly you have delete your new tree
> first, not sure how pruning works when you've recreated a new worktree
> in the same place).

I forgot to mention I did that; deleted the tree, ran 'git worktree 'prune'.

But that apparently does not remove the emacs-26 branch.

-- 
-- Stephe



reply via email to

[Prev in Thread] Current Thread [Next in Thread]