skip to Main Content

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


  1. 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.

    Login or Signup to reply.
  2. So, when you want to open any git repo in WSL terminal you need perform following commands in WSL terminal:

        $ git clone repo-link
        $ cd repo-name
        $ code 
    

    After the following command, the cloned repo will open in both WSL terminal and VS code as well.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search