I'm using git version 2.14.2.windows.2 and invoked
git worktree add <newpath> <branch>
on a "normal" repository to create a worktree. This created a new working tree structure at <newpath> for the branch <branch> and added .git/worktrees/<newpath-name> with a couple of files.
When invoking
git worktree prune
from the <newpath> it prints nothing and seems to do nothing (all the files in <newpath> and <original-dir>/.git/worktrees are kept). The Git documentation writes:
Prune working tree information in $GIT_DIR/worktrees.
which does not help much. What actually git worktree prune does or should do? Am I wrong in the assumption that it would remove the worktree to undo the git worktree add?