It's a bit non-intuitive, and just as undocumented as the ~ option, but wsl --cd sounds like what you are looking for. It actually takes a Windows path spec, not the WSL/Linux form. So:
wsl --cd "C:\Users\My User\repos"
If you are using the Windows Terminal Settings UI, then it will automatically provide the proper quoting for you in the ...
Even though you can find these files in the Windows filesystem if you’re using WSL 1, you must not modify the WSL filesystem tree from Windows.
You can access these files from your Ubuntu WSL terminal. To delete the file, use the following command:
If you want to access the filesystem using Windows Explorer, you can use the following ...