Skip to content

"Publish to GitHub" defaults to broken HTTPS remote instead of SSH #318565

@sohang3112

Description

@sohang3112

Type: Bug

Steps to Reproduce:

  • Click "Publish to GitHub" on a new local repository.
  • Check the remote URL git remote -v.

Actual Behavior:

It configures an HTTPS Github Repo url https://github.com/.... Because GitHub requires SSH/tokens for authentication, subsequent terminal pushes fail immediately. The initial push only works because of VS Code's temporary OAuth helper.

Expected Behavior:

It should configure an SSH remote git@github.com:... so subsequent pushes actually work.

VS Code version: Code 1.121.0 (f6cfa2e, 2026-05-19T11:51:53+02:00)
OS version: Linux x64 7.0.0-15-generic
Modes:

System Info
Item Value
CPUs Intel(R) Core(TM) i5-8250U CPU @ 1.60GHz (8 x 2673)
GPU Status 2d_canvas: enabled
GPU0: VENDOR= 0x10de, DEVICE=0x174d, DRIVER_VENDOR=Mesa, DRIVER_VERSION=26.0.3
GPU1: VENDOR= 0x8086, DEVICE=0x5917, DRIVER_VENDOR=Mesa, DRIVER_VERSION=26.0.3 ACTIVE
Machine model name:
Machine model version:
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
trees_in_viz: disabled_off
video_decode: enabled
video_encode: disabled_software
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: disabled_off
webnn: disabled_off
Load (avg) 1, 1, 0
Memory (System) 14.99GB (2.57GB free)
Process Argv --crash-reporter-id 3ec79145-0ace-4d1e-949a-f50f798864e0
Screen Reader no
VM 0%
DESKTOP_SESSION ubuntu
XDG_CURRENT_DESKTOP ubuntu:GNOME
XDG_SESSION_DESKTOP ubuntu
XDG_SESSION_TYPE wayland
Extensions (20)
Extension Author (truncated) Version
rust-bundle 1Yi 1.0.0
calva bet 2.0.588
calva-spritz bet 1.0.5
rust-syntax dus 0.6.1
dependi fil 0.7.22
markdown-converter man 5.2.1
debugpy ms- 2026.6.0
python ms- 2026.4.0
vscode-pylance ms- 2026.2.1
vscode-python-envs ms- 1.30.0
jupyter ms- 2025.9.1
jupyter-keymap ms- 1.1.2
jupyter-renderers ms- 1.3.0
vscode-jupyter-cell-tags ms- 0.1.9
vscode-jupyter-slideshow ms- 0.1.6
cmake-tools ms- 1.23.52
cpp-devtools ms- 0.5.13
cpptools ms- 1.32.2
cpptools-extension-pack ms- 1.5.1
rust-analyzer rus 0.3.2913

(1 theme extensions excluded)

A/B Experiments
vsliv368cf:30146710
pythonvspyt551:31249599
binariesv615:30325510
nativeloc1:31344060
dwcopilot:31170013
dwoutputs:31242946
copilot_t_ci:31333650
e5gg6876:31282496
pythonrdcb7:31342333
6518g693:31463988
aj953862:31281341
b6b4d950:31327385
6abeh943:31336334
envsdeactivate2:31505458
cloudbuttont:31379625
3efgi100_wstrepl:31403338
839jf696:31457053
ec5jj548:31422691
cp_cls_t_966_ss:31454198
inlinechat_v2_hd992725:31505030
4je02754:31466945
8hhj4413:31478653
38bie571_auto:31426784
cp_cls_c_1081:31454833
conptydll_true:31498968
ia-use-proxy-models-svc:31452481
e9c30283:31461165
test_treatment2:31471001
46204921:31447328
control_6dc23131:31520950
idci7584:31464702
e3e4d672:31494082
ei9d7968:31496641
chat:31457767
8hig5102:31480529
89g7j272:31518289
7e187181:31503455
i2gc6536:31499202
52612955:31516516
githubstableflight:31469463
ghj88844:31499326
ddid_c:31478207
hmra_i5g22:31518061
getcmakediagnosticsoff:31489825
7df3h592:31512476
cp_cls_t_1082:31516087
logging_enabled_new:31498466
j0d79568:31499440
nes-extended-cfe-himalia-004:31500446
jb_cp_cls_c_632:31517842
852d2892:31506239
56dj4588:31512888
cg448276_tst_on:31514358
32d76977:31512328
ha629193:31508444
nes-charagree-1:31521370
539gd155_c:31506875
jh5f2457_c:31515489
61138546:31518536

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions