Skip to content

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

@nbransby

Description

@nbransby

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

Activity

vs-code-engineering

vs-code-engineering commented on May 16, 2025

@vs-code-engineering

Thanks for creating this issue! It looks like you may be using an old version of VS Code, the latest stable release is 1.100.2. Please try upgrading to the latest version and checking whether this issue remains.

Happy Coding!

nbransby

nbransby commented on May 16, 2025

@nbransby
Author

Still doesnt work

added
gitGIT issues
bugIssue identified by VS Code Team member as probable bug
help wantedIssues identified as good community contribution opportunities
on May 16, 2025
changed the title [-]Checkout command not allowing the option to stash or migrate any change you’ve made locally[/-] [+]Git - Checkout command not allowing the option to stash or migrate any change you’ve made locally[/+] on May 16, 2025
added a commit that references this issue on May 17, 2025

fix microsoft#249087: Handle dirty work tree error when branch name i…

e942edf
added 5 commits that reference this issue on May 17, 2025

fix microsoft#249087: Handle dirty work tree error when branch name i…

71e5925

fix microsoft#249087: Handle dirty work tree error when branch name i…

204f1eb

fix microsoft#249087: Handle dirty work tree error when branch name i…

680a88a

fix microsoft#249087: Handle dirty work tree error when branch name i…

c8ecdf0

fix microsoft#249087: Handle dirty work tree error when branch name i…

c57a470
added a commit that references this issue on Jun 8, 2025

fix microsoft#249087: Handle dirty work tree error when branch name i…

2b70ec5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable buggitGIT issueshelp wantedIssues identified as good community contribution opportunities

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

    Participants

    @nbransby@lszomoru

    Issue actions

      Git - Checkout command not allowing the option to stash or migrate any change you’ve made locally · Issue #249087 · microsoft/vscode