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

View on GitHub
 (2 comments) (0 reactions) (1 assignee)TypeScript (74,848 stars) (10,221 forks)batch import
buggithelp wanted

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