microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
164.49k stars 29.37k forks source link

Cannot push branch after delete origin #122719

Open michalZimowski opened 3 years ago

michalZimowski commented 3 years ago

Issue Type: Bug

Case scenario:

  1. Go to Source Control tab
  2. Create some branch
  3. Do and Commit some changes on this branch
  4. Publish branch
  5. Delete published branch on origin
  6. Rename local branch from to
  7. Try to publish renamed branch - you got info like "No commits found to push"

VS Code version: Code 1.55.2 (3c4e3df9e89829dce27b7b5c24508306b151f30d, 2021-04-13T09:35:57.887Z) OS version: Windows_NT x64 10.0.18363

System Info |Item|Value| |---|---| |CPUs|Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz (4 x 2712)| |GPU Status|2d_canvas: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
oop_rasterization: enabled
opengl: enabled_on
protected_video_decode: enabled
rasterization: enabled
skia_renderer: enabled_on
video_decode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled| |Load (avg)|undefined| |Memory (System)|11.89GB (0.52GB free)| |Process Argv|--crash-reporter-id a9394730-d4f1-4444-9781-081e65521d0e| |Screen Reader|no| |VM|0%|
Extensions (22) Extension|Author (truncated)|Version ---|---|--- better-comments|aar|2.1.0 vscode-sql-formatter|adp|1.4.4 vscode-sqlite|ale|0.12.0 path-intellisense|chr|2.3.0 git-diff-and-merge-tool|dav|1.0.4 gitlens|eam|11.4.1 vscode-npm-script|eg2|0.3.21 prettier-vscode|esb|6.3.2 select-highlight-minimap|mde|0.1.0 rainbow-csv|mec|1.8.1 mssql|ms-|1.10.1 remote-wsl|ms-|0.54.6 powershell|ms-|2021.2.2 codemap|ole|1.16.0 material-icon-theme|PKi|4.6.0 tcl|ras|0.1.0 partial-diff|ryu|1.4.3 tcl|sle|0.2.0 vscode-taskexplorer|spm|2.0.7 codemap|Tia|0.0.1 gitblame|wad|6.0.2 material-theme|zhu|3.10.13
A/B Experiments ``` vsliv368cf:30146710 vsreu685:30147344 python383cf:30185419 pythonvspyt602:30294772 vspor879:30202332 vspor708:30202333 vspor363:30204092 vswsl492:30256859 vstry244:30276681 pythonvsnew554cf:30291488 pythontb:30283811 vspre833:30267464 pythonptprofiler:30281270 vsdfh931:30280409 vshan820:30294714 pythondataviewer:30285071 vscus158:30286553 vscgsv2:30294352 ```
vscodebot[bot] commented 3 years ago

(Experimental duplicate detection) Thanks for submitting this issue. Please also check if it is already covered by an existing one, like:

michalZimowski commented 3 years ago

I'm not sure it's a bug, but I think I should have possibility to publish local branch after delete it on origin. Maybe it's a git issue.