'Deleting git worktree bugs 'git status' and some other git commands

A few months ago (still in the beginning of learning git) I created a worktree without even knowing what it was. A new branch was created and now I realized that it was a new worktree. I deleted the work tree and its respective branch, but I always get ->

' fatal: not a git repository: D:/path/path/path/.git/worktrees/horus_app_v100 '

-> when trying to git status or other stuff

Using the command:

git worktree list

Only my main worktree is shown and not the error one horus_app_v100

I tryied git worktree prune but it didn't work



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source