Trouble with git clone in GitHub Classroom forked repo #9851
-
|
Good afternoon! I am using GitHub and Positron for the first time for a data science class, and am having trouble with them. I have a git repository that was generated in GitHub Classroom, and I have a forked repository for my own work. I am trying to clone that repo into Positron. Whenever I do (using the proper credentials, the correct URL, etc. etc.) I get the "Repository not found" error. I am running WSL through a remote connection in Positron. I am using all of the correct authentication methods, and I am able to run the correct process through VS Code (in WSL) without an issue. The problem is not that the repository doesn't exist, or that my authentication is wrong. The same thing happens when I try to use the "New Folder from Git" button. Does anyone have insights? It works perfectly fine in VS Code. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 7 replies
-
|
Can you try out using Positron all locally, not in a WSL session? I understand that might not be how you actually want to work, but can you try it out that way to see if it's a problem with how WSL is set up? |
Beta Was this translation helpful? Give feedback.
-
May I know if you can do git clone from the Positron terminal command line in WSL? From my understsnding, Positron's source control panel is a wrapper of the command line version and I wonder if the latter works well. From my use I'm having no problem with starting a new folder from git in WSL Positron. |
Beta Was this translation helpful? Give feedback.
-
|
That worked! Thank you so much! Using the CLI and logging in with my browser seemed to do the trick! Thank you everyone for your help! |
Beta Was this translation helpful? Give feedback.
I think that's the issue! So basically the WSL has not "logged in" to GitHub correctly as Windows has already. Please could you try following https://docs.github.com/en/get-started/git-basics/set-up-git and https://docs.github.com/en/get-started/git-basics/caching-your-github-credentials-in-git?platform=linux and see if they solve the command line problem? Once you fix that, Positron's source control panel would work automatically I think.