On Sat, Sep 20, 2014 at 10:54 PM, Duy Nguyen <pclouds@xxxxxxxxx> wrote: > On Fri, Sep 12, 2014 at 10:06 AM, Eric Sunshine <sunshine@xxxxxxxxxxxxxx> 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. -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html