vscode: Private repositories on github are not detected
Issue Type: Bug
Cloning a private repository does not work: Only public repositories are available in the dropdown…private repos don’t seem to be discovered. What I tried:
- verify ssh keys
- changed key from Ed25519 to RSA (as suggested here )
- tried
git clone {repo}on the cmd line, which did work
VS Code version: Code 1.58.2 (c3f126316369cd610563c75b1b1725e0679adfb3, 2021-07-14T22:30:16.440Z) OS version: Linux x64 5.10.0-1038-oem snap Restricted Mode: No
System Info
| Item | Value |
|---|---|
| CPUs | Intel® Core™ i7-10750H CPU @ 2.60GHz (12 x 3100) |
| GPU Status | 2d_canvas: unavailable_software gpu_compositing: disabled_software multiple_raster_threads: enabled_on oop_rasterization: disabled_off opengl: disabled_off rasterization: disabled_software skia_renderer: enabled_on video_decode: disabled_software vulkan: disabled_off webgl: unavailable_software webgl2: unavailable_software |
| Load (avg) | 1, 1, 1 |
| Memory (System) | 31.03GB (21.86GB free) |
| Process Argv | –no-sandbox --force-user-env --unity-launch --crash-reporter-id 7b95d88d-f3cc-44df-8a8f-63d3e3ed37c4 |
| Screen Reader | no |
| VM | 0% |
| DESKTOP_SESSION | ubuntu |
| XDG_CURRENT_DESKTOP | Unity |
| XDG_SESSION_DESKTOP | ubuntu |
| XDG_SESSION_TYPE | x11 |
Extensions (35)
| Extension | Author (truncated) | Version |
|---|---|---|
| arepl | alm | 2.0.3 |
| zoterolatex | bna | 0.4.1 |
| gltf-vscode | ces | 2.3.11 |
| compulim-vscode-closetag | Com | 1.2.0 |
| vscode-markdownlint | Dav | 0.42.1 |
| xml | Dot | 2.5.1 |
| gitlens | eam | 11.6.0 |
| prettier-vscode | esb | 8.1.0 |
| matlab | Gim | 2.0.1 |
| remotehub | Git | 0.11.0 |
| vscode-pull-request-github | Git | 0.28.0 |
| gc-excelviewer | Gra | 3.0.42 |
| vscode-test-explorer | hbe | 2.20.4 |
| latex-workshop | Jam | 8.19.2 |
| plantuml | jeb | 2.15.1 |
| kite | kit | 0.147.0 |
| vscode-github | Kni | 0.30.6 |
| rainbow-csv | mec | 1.9.1 |
| vscode-docker | ms- | 1.15.0 |
| vscode-ros | ms- | 0.6.8 |
| python | ms- | 2021.8.1068685406-dev |
| vscode-pylance | ms- | 2021.7.7 |
| jupyter | ms- | 2021.8.1054968649 |
| remote-containers | ms- | 0.187.1 |
| remote-ssh | ms- | 0.65.7 |
| remote-ssh-edit | ms- | 0.65.7 |
| cmake-tools | ms- | 1.7.3 |
| cpptools | ms- | 1.5.1 |
| test-adapter-converter | ms- | 0.0.13 |
| postscript | mxs | 1.0.1 |
| vscode-3dviewer | sle | 0.2.2 |
| qtvsctools | ton | 0.10.1 |
| cmake | twx | 0.0.17 |
| vscode-icons | vsc | 11.5.0 |
| clang-format | xav | 1.9.0 |
(1 theme extensions excluded)
A/B Experiments
vsliv368cf:30146710
vsreu685:30147344
python383cf:30185419
pythonvspyt602:30300191
vspor879:30202332
vspor708:30202333
vspor363:30204092
pythonvspyt639:30300192
pythontb:30283811
vspre833:30321513
pythonptprofiler:30281270
vshan820:30294714
vstes263cf:30335440
vscoreces:30322571
pythondataviewer:30285071
vscus158:30321503
pythonvsuse255:30340121
vscod805:30301674
pythonvspyt200:30340761
vscextlangct:30333562
binariesv615:30325510
vsccppwt:30329788
pythonvssor306:30344512
bridge0708:30335490
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Reactions: 5
- Comments: 27 (1 by maintainers)
Using Remote Container extension I had the same problem. I followed these steps and now it works.
Click on “Open a Remote Window”
Click on Clone Repository in Container Volume…
(Important) Click on Clone a repository from Github in a Container Volume
By default only public repositories will be shown:
It is necessary to type the name of your private repository including your user in this way: your_username/your_repository_name And wait a couple of seconds for the result to be displayed.
I hope it is useful to someone.
Same issue on Ubuntu 20. Unable to work with private repositories since the recent upgrade. Any help is much appreciated. Thanks!
Edit: I had latest version code=1.62.2-1636665017 - this gave error when trying to do anything with a private repo. I downgraded to code=1.61.2-1634656828, and everything seems to be working fine with private repositories.
hello, for me it works. first it shows only public repos in the list but if i begin to write the name of my private repos it appears.
I do have same issue of not having detected private repos from GitHub. Using git clone from within VSCode palette (ctrl+shift+P) does not show private repos in drop-down list.
I am on arch linux. I face this exact problem. VS code used to work fine on private repos (push/pull worked) but not I am not even able to clone my private repos from the command palette unless I use ssh to clone them manually. I am able to do so in my windows machine.
Any kind of help is greatly appreciated.
I have the same issue, fresh install of VS Code on Mac. Can see my public repos. Can search my public and other public repos, see the progress bar after debounce time limit. Can clone my private repo from UI using http url. Can commit and push/pull from the UI to private repo. But can NOT see private repos in the search results list.
git ls-remoteshowed info and didn’t trigger any prompts. Revoked access from GitHub VS Code app and authorised again. Can confirm that it asked for private repo access. Still no luck seeing private repos in the search results.VS Code version: Code 1.59.1 (Universal) (3866c3553be8b268c8a7f8c0482c0c0177aa8bfa, 2021-08-19T11:53:52.479Z) OS version: Darwin x64 20.6.0 Restricted Mode: No
System Info
gpu_compositing: enabled
metal: disabled_off
multiple_raster_threads: enabled_on
oop_rasterization: enabled
opengl: enabled_on
rasterization: enabled
skia_renderer: disabled_off_ok
video_decode: enabled
webgl: enabled
webgl2: enabled
Extensions (19)
A/B Experiments
This isn’t a way to solve this issue. This feature should be working from the editor itself.
Same here, any workaround? it’s strange, I can see every publicly available repos except my own private repos.
I think my problem was from two different
.gitinitialization! I had a main folder, initialized a git pointed to my private repo on GitHub, inside another folder I had a Heroku project that had git for itself by Heroku… donecd ..then pushed.