Repository: vscode
Issue: Git - Git checkout for remote branch does not work
Labels: bug,git

Type: <b>Bug</b>

Hello, Team!

When I tried to checkout a remote branch, I got the following error message (see attachment). The strange thing is that there is no mention of the files that caused the problem in the popup. Can you please fix this?

[gitLogWithtrace.log](https://github.com/microsoft/vscode/files/10746100/gitLogWithtrace.log)
[GitRemoteCheckoutDoesNotWork](https://user-images.githubusercontent.com/1839739/219115721-4b4535a6-a306-4e18-9b7d-077ad40055e8.gif)

VS Code version: Code 1.75.1 (441438abd1ac652551dbe4d408dfcec8a499b8bf, 2023-02-08T21:32:34.589Z)
OS version: Windows_NT x64 10.0.19045
Modes:
Sandboxed: No

<details>
<summary>System Info</summary>

|Item|Value|
|---|---|
|CPUs|11th Gen Intel(R) Core(TM) i7-1165G7 @ 2.80GHz (8 x 2803)|
|GPU Status|2d_canvas: enabled<br>canvas_oop_rasterization: disabled_off<br>direct_rendering_display_compositor: disabled_off_ok<br>gpu_compositing: enabled<br>multiple_raster_threads: enabled_on<br>opengl: enabled_on<br>rasterization: enabled<br>raw_draw: disabled_off_ok<br>skia_renderer: enabled_on<br>video_decode: enabled<br>video_encode: enabled<br>vulkan: disabled_off<br>webgl: enabled<br>webgl2: enabled<br>webgpu: disabled_off|
|Load (avg)|undefined|
|Memory (System)|31.75GB (6.10GB free)|
|Process Argv|--crash-reporter-id c2d76645-3789-47da-a678-f1fbfbb015bc|
|Screen Reader|no|
|VM|0%|
</details><details><summary>Extensions (41)</summary>

Extension|Author (truncated)|Version
---|---|---
project-manager|ale|12.7.0
ng-template|Ang|15.1.0
gitstash|art|5.1.0
asciidoctor-vscode|asc|2.9.8
vscode-tailwindcss|bra|0.9.7
npm-intellisense|chr|1.4.4
path-intellisense|chr|2.8.4
gitignore|cod|0.9.0
font-preview|ctc|2.2.1
vscode-eslint|dba|2.4.0
githistory|don|0.6.19
gitlens|eam|13.2.0
vscode-html-css|ecm|1.13.1
EditorConfig|Edi|0.16.4
prettier-vscode|esb|9.10.4
vscode-firefox-debug|fir|2.9.8
code-runner|for|0.12.0
gitpod-desktop|git|0.0.74
vscode-htmlhint|HTM|1.0.4
angular-essentials|joh|13.0.0
Angular2|joh|13.0.0
vscode-peacock|joh|4.2.2
git-graph|mhu|1.30.0
vscode-scss|mrm|0.10.0
vscode-docker|ms-|1.23.3
csharp|ms-|1.25.4
remote-containers|ms-|0.275.1
remote-ssh|ms-|0.96.0
remote-ssh-edit|ms-|0.84.0
remote-explorer|ms-|0.2.0
material-icon-theme|PKi|4.24.0
tsimporter|pmn|2.0.1
vscode-xml|red|0.24.0
svg-preview|Sim|2.8.3
vscode-csstree|sme|1.1.0
sonarlint-vscode|Son|3.14.0
code-spell-checker|str|2.16.0
move-ts|str|1.12.0
vscode-icons|vsc|12.2.0
gitblame|wad|10.1.0
vscode-open-in-github|ziy|1.3.6

(1 theme extensions excluded)

</details><details>
<summary>A/B Experiments</summary>

```
vsliv368:30146709
vsreu685:30147344
python383cf:30185419
vspor879:30202332
vspor708:30202333
vspor363:30204092
vslsvsres303:30308271
pythonvspyl392:30443607
vserr242cf:30382550
pythontb:30283811
vsjup518:30340749
pythonptprofiler:30281270
vshan820:30294714
vstes263:30335439
vscorecescf:30445987
pythondataviewer:30285071
vscod805:30301674
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
cmake_vspar411:30581797
vsaa593:30376534
pythonvs932:30410667
cppdebug:30492333
vsclangdc:30486549
c4g48928:30535728
dsvsc012cf:30540253
azure-dev_surveyone:30548225
pyindex848:30662994
nodejswelcome1:30587005
282f8724:30602487
pyind779:30662992
f6dab269:30613381
pythonsymbol12:30657548
6233i204:30664135
vsccsb:30662443

```

</details>

<!-- generated by issue reporter -->