Remove a worktree (after deleting worktree directory)

git worktree

  • Manage multiple working trees attached to the same repository.
    More information: <https://git-scm.com/docs/git-worktree>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

git worktree prune

click the source code to copy install git worktree on any operating system with command-not-found.com