I have installed Ubuntu WSL2 and have been working on some projects on visual-studio-code for a while now. But I am unable to fetch the downloaded git repositories from windows.
I am expecting if there is a way to open downloaded git repos in ubuntu wsl2.
2
Answers
In windows open the control panel and from there click power options and from there you will see change advance settings and then there will be a line written "change setting that are currently unavailable ". Then untick the first option (it will include something about PC).
This worked for me.
I hope it helps.
Mark the answer correct if it works.
So, when you want to open any git repo in WSL terminal you need perform following commands in WSL terminal:
After the following command, the cloned repo will open in both WSL terminal and VS code as well.