Mount the WSL-based Ubuntu as a drive in Windows.
How did I fix «git status failed with code 128: fatal: detected dubious ownership in repository at '//wsl.localhost/Ubuntu-22.04/'» for a repository located in WSL-based Ubuntu?
git status