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
I found the solution, the .git file was corrupt (invalid path).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With