How do I connect from Windows to a Git repository located in WSL-based Ubuntu via SourceTree?

Step 1

Mount the WSL-based Ubuntu as a drive in Windows.

Step 2

2023-10-29--19-05-14

Step 3

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?

Result

2023-10-29--19-36-35