From: Stephen Leake <stephen_leake@stephe-leake.org>
To: emacs-devel <emacs-devel@gnu.org>
Subject: Re: git: how to restore a deleted worktree?
Date: Thu, 04 Jan 2018 16:04:25 -0600 [thread overview]
Message-ID: <86a7xt2sd2.fsf@stephe-leake.org> (raw)
In-Reply-To: <CAM-tV--7uQqs8JV+kY6cW8Di-oiSawBeMdEwKxb6=4qb9=W4Zg@mail.gmail.com> (Noam Postavsky's message of "Thu, 4 Jan 2018 09:06:35 -0500")
Noam Postavsky <npostavs@users.sourceforge.net> writes:
> On Thu, Jan 4, 2018 at 8:51 AM, Stephen Leake
> <stephen_leake@stephe-leake.org> 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
next prev parent reply other threads:[~2018-01-04 22:04 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-01-04 13:51 git: how to restore a deleted worktree? Stephen Leake
2018-01-04 14:06 ` Noam Postavsky
2018-01-04 22:04 ` Stephen Leake [this message]
2018-01-04 23:14 ` Andreas Schwab
2018-01-04 14:07 ` Nathan Moreau
2018-01-04 22:07 ` Stephen Leake
2018-01-07 20:15 ` Nathan Moreau
2018-01-07 20:22 ` Andreas Schwab
2018-01-04 14:49 ` Andreas Schwab
2018-01-04 18:29 ` Stefan Monnier
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=86a7xt2sd2.fsf@stephe-leake.org \
--to=stephen_leake@stephe-leake.org \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.