git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: worktree add already exists

From
Duy Nguyen <pclouds@gmail.com>
Date
Jun 6, 2019, 09:34 UTC
Message-ID
<CACsJy8AKNrC_XY+6bq1FpPCs4MWZa_jCSiAvjmypPjS0g26cHg@mail.gmail.com>
In-Reply-To
<cd006427-03ad-4823-e872-96903cc96fd0@gmx.de>
On Wed, Jun 5, 2019 at 10:30 PM Ingo Wolf <ingo.wolf@gmx.de> wrote:
Show 7 quoted lines
>
> Am 05.06.2019 um 12:17 schrieb Duy Nguyen:
> > "worktree add --no-checkout --keep-worktree" is quite readable
>
> worktree add --no-checkout -f (orce)
>
> I've expected to work on an not empty directory

Yeah --force works too. Not sure how it interacts with "--force --force". But --force is already overloaded, I don't think forcing harder is going to make it much worse.

-- 
Duy
Previous: Ingo Wolf
Message 7 of 7 in “worktree add already exists”
  1. Ingo WolfMay 27, 2019
  2. Eric SunshineJun 2, 2019
  3. Duy NguyenJun 3, 2019
  4. Eric SunshineJun 3, 2019
  5. Duy NguyenJun 5, 2019
  6. Ingo WolfJun 5, 2019
  7. Duy NguyenJun 6, 2019

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.