Skip to content

"Delete local branches" is showing branches that have already been deleted #8815

Description

  • Extension version:
  • VSCode Version: 1.120.0
  • OS: Linux x64 5.14.0-611.54.1.el9_7.x86_64
  • Repository Clone Configuration: fork of an upstream repository
  • GitHub Product: GitHub.com

Steps to Reproduce:

  1. Run the "Delete local branches and remotes" command (pr.deleteLocalBranchesNRemotes)
  2. It shows branches that no longer exist
  3. .git/config for the repo still contains [branch "<name>"] sections

Activity

  1. alexr00 commented on Jul 2, 2026

    @alexr00
    Member

    It shows branches that no longer exist
    .git/config for the repo still contains [branch ""] sections

    This would indicate that the branch is not fully deleted. How did you delete the branches?

  2. MetRonnie commented on Jul 2, 2026

    @MetRonnie
    Author

    Mainly through either the mhutchie.git-graph extension (which does git branch --delete --force according to its logs), or via the "Delete local branches" command from this extension

  3. added
    bugIssue identified by VS Code Team member as probable bug
    and removed
    info-neededIssue requires more information from poster
    on Jul 7, 2026
  4. MetRonnie commented on Jul 7, 2026

    @MetRonnie
    Author

    I can confirm just now that the leftover branches config is being left over by the "Delete local branches" command, which has done so just now for a couple of branches but otherwise successfully deleted them (not showing anymore in git branch -v)

  5. added this to the 1.130.0 milestone on Jul 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bugIssue identified by VS Code Team member as probable bugverifiedVerification succeeded

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions