WSL & Worktree issue : Not a git repositiory

Author: OdysseusOperatorCreated Dec 12, 2024Updated Jul 9, 2026
Labelsplatform:wsl

Git is set up, just like this: https://learn.microsoft.com/en-us/windows/wsl/tutorials/wsl-git

I am using WSL Ubuntu 24.04. Windows and Linux both have Git in Version 2.47.1 This error doesn't appear on Windows, just from WSL.


Steps to reproduce: (Works with all repos i think) Open Wsl. make a dir to work in and cd into it. git clone https://github.com/routerdieb/java11TxtTimebox main cd main git worktree add ../test123 cd .. cd test123 git pull (or git push doesnt matter here)

Source: git-ecosystem/git-credential-manager