Reputation: 3219
I have a local git repository and I use a git worktree hierarchy. So far any application I tried worked well with git worktrees, but Visual Studio complains, that the given directory is not a git repository. I can ensure the .git
file inside the directory.
According to release notes and pages and blog posts this feature was added in Visual Studio 2017, but for me even in VS 2019 it fails to load. Am I missing something?
Git failed with a fatal error.
fatal: Not a git repository: C:\Users\stepehn\Desktop\foo
Upvotes: 4
Views: 2298
Reputation: 3219
I found the solution, the .git
file was corrupt (invalid path).
Upvotes: 1