Microsoft/vscode

Git - Checkout command not allowing the option to stash or migrate any change you’ve made locally

Open

#249,087 opened on May 16, 2025

 (2 comments) (0 reactions) (1 assignee)TypeScript (39,847 forks)batch import
BugGood first issuebuggithelp wantediOS

Repository metrics

Stars
 (184,936 stars)
PR merge metrics
 (PR metrics pending)

Description

Does this issue occur when all extensions are disabled?: Yes/No

  • VS Code Version: 1.100.1
  • OS Version: Window 11

When calling commands.executeCommand("git.checkout", repo, name) with local changes you get the following:

Image

But commands.executeCommand("git.checkout", repo) and having the user select the branch gives:

Image

Contributor guide