From: Eric Sunshine Date: Sun, 21 Sep 2014 03:01:51 GMT Subject: Re: [PATCH v2 23/32] prune: strategies for linked checkouts Message-ID: In-Reply-To: On Sat, Sep 20, 2014 at 10:54 PM, Duy Nguyen wrote: > On Fri, Sep 12, 2014 at 10:06 AM, Eric Sunshine wrote: >> One minor addition for clarification would be to mention that the 'git >> prune --worktrees' invocation applies to the main worktree: >> >> When you are done with a linked working tree, you can simply delete >> it. You can clean up any stale $GIT_DIR/worktrees entries via >> `git prune --worktrees` in the main worktree. > > > The command should work from any worktree (of course not the worktree > that you just deleted). I try to make all operations work on all > worktrees. How should I write this? I realized that a bit after writing the above. You could qualify it as: When you are done with a linked working tree, you can simply delete it. You can clean up any stale $GIT_DIR/worktrees entries via `git prune --worktrees` in the main worktree or any linked tree. But the "...in the main worktree or any linked tree" is likely redundant, in which case Marc's rewrite is probably sufficient.