You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When accessing a Git repository located inside WSL2 (e.g., via \\wsl.localhost\Ubuntu-24.04\home\...\myrepo) using Git on Windows, Git may output an error like:
fatal: detected dubious ownership in repository at '//wsl.localhost/Ubuntu-24.04/home/gadfly/Documents/sourcegit'
To add an exception for this directory, call:
git config --global --add safe.directory '%(prefix)///wsl.localhost/Ubuntu-24.04/home/gadfly/Documents/sourcegit'
However, the GUI client does not display this stderr output , leaving users confused about why Git operations fail.