Microsoft/vscode

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

Open

#249,087 opened on 2025年5月16日

GitHub で見る
 (2 comments) (0 reactions) (1 assignee)TypeScript (10,221 forks)batch import
buggithelp wanted

Repository metrics

Stars
 (74,848 stars)
PR merge metrics
 (平均マージ 11h 43m) (30d で 1,000 merged PRs)

説明

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

コントリビューターガイド