You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
"entry is not unique due to being a multivar" #2700
I've recently started getting this error often when I am trying to delete local branches within GitUp, it does not seem to happen to every branch, just some branches. It does not appear to be dependent on a specific git repo, it happens in all my git repos. It didn't start happening to me until one or two updates ago. I can successfully delete any branches this happens to via git CLI, the error seems to be GitUp specific. A quick google suggests it may be coming from libgit2...?
That error seems to occur when reading Git config variables that are structured in an unexpected way, specifically. Could you share (the non-sensitive parts of) your Git config?
The next time GitUp shows this error, open the repo in a Terminal and run:
That error seems to occur when reading Git config variables that are structured in an unexpected way, specifically. Could you share (the non-sensitive parts of) your Git config?
The next time GitUp shows this error, open the repo in a Terminal and run:
Looks to me like the similarity is that there are multiple of the vscode-merge-base entry in all of them... the branches I can delete successfully do not have two entries.
Let me know if there is anything else I can do to help debug.
Thanks for the details! I was able to reproduce locally by adding duplicate config options, like in your setup.
This does look like this is a libgit2 issue: GitUp calls git_branch_delete, which tries to delete config related to the branch, and that fails for this variable because it has multiple values.
Of note, #2683 kind of fixes the issue: with that PR, deleting the branch still fails (now with a could not find key 'XXX' to delete error), but does remove the config options, so it succeeds the next time you attempt it.
We should open an issue with libgit2, since that's where the actual bug seems to live.
Hello, I'm here with the same issue, and apparently the same cause (duplicated entries with suspicious "vscode" tags.. I say suspicious because even if I do have Cursor running I'm 100% not using its git features as I'm fully into GitUp)
Seeing these new comments, I switched to the continuous channel and now when I try to delete my local branches I get the error could not find key 'branch.<branch-name>.github-pr-owner-number' to delete instead of the multivar error... weird!
@amiantos Not sure how easy it is to setup a git repo that has the configs locally defined that break this. Would love to be able to debug the case for you.
@amiantos Not sure how easy it is to setup a git repo that has the configs locally defined that break this. Would love to be able to debug the case for you.
From a google the github-pr-owner-number tag comes from the GitHub extension from VS Code, I don't think there is any special remote configuration I am using, as this happens across my personal repos and professional ones. I assume I would not be alone in this, but I suppose there might not be that many people who use GitUp and VSCode with the Github extension. But I think all that is needed to reproduce it would be to open a PR in GitHub for a branch, look at the PR inside VSCode, and then close the PR and have GitHub delete the remote branch.
I went into my git config and manually erased those GitHub pr lines and was able to delete the branch. So maybe I just write a script to edit my git configs to remove these keys for now. But to test I bet we could just add those keys with random data to any local branch and it should reproduce I bet.
Activity
Cykelero commentedon Apr 28, 2025
That error seems to occur when reading Git config variables that are structured in an unexpected way, specifically. Could you share (the non-sensitive parts of) your Git config?
The next time GitUp shows this error, open the repo in a Terminal and run:
amiantos commentedon Apr 28, 2025
Similarly in another repo where I get the same issue, this is the config for two branches that displays the same error.
Looks to me like the similarity is that there are multiple of the
vscode-merge-baseentry in all of them... the branches I can delete successfully do not have two entries.Let me know if there is anything else I can do to help debug.
Cykelero commentedon May 4, 2025
Thanks for the details! I was able to reproduce locally by adding duplicate config options, like in your setup.
This does look like this is a libgit2 issue: GitUp calls
git_branch_delete, which tries to delete config related to the branch, and that fails for this variable because it has multiple values.Of note, #2683 kind of fixes the issue: with that PR, deleting the branch still fails (now with a
could not find key 'XXX' to deleteerror), but does remove the config options, so it succeeds the next time you attempt it.We should open an issue with libgit2, since that's where the actual bug seems to live.
mchccc-allears commentedon Jan 21, 2026
Hello, I'm here with the same issue, and apparently the same cause (duplicated entries with suspicious "vscode" tags.. I say suspicious because even if I do have Cursor running I'm 100% not using its git features as I'm fully into GitUp)
#2683 says "merged", but I'm seeing the same error message as OP and it doesn't work on the second try.
lucasderraugh commentedon Jan 21, 2026
@mchccc-allears Are you on the continuous channel build or stable? The changes are only in the continuous channel at the moment.
mchccc-allears commentedon Jan 21, 2026
oh, sorry, I didn't realize.. yes I'm stable
lucasderraugh commentedon Jan 21, 2026
No worries, we had a long gap where I wasn't pushing updates. Hoping to update the stable build in the coming weeks.
Let me know if it fixes the issues.
mchccc-allears commentedon Jan 21, 2026
it did work as advertised :D
thank you
amiantos commentedon Jan 22, 2026
Seeing these new comments, I switched to the continuous channel and now when I try to delete my local branches I get the error
could not find key 'branch.<branch-name>.github-pr-owner-number' to deleteinstead of the multivar error... weird!lucasderraugh commentedon Jan 22, 2026
@amiantos Not sure how easy it is to setup a git repo that has the configs locally defined that break this. Would love to be able to debug the case for you.
amiantos commentedon Jan 22, 2026
From a google the
github-pr-owner-numbertag comes from the GitHub extension from VS Code, I don't think there is any special remote configuration I am using, as this happens across my personal repos and professional ones. I assume I would not be alone in this, but I suppose there might not be that many people who use GitUp and VSCode with the Github extension. But I think all that is needed to reproduce it would be to open a PR in GitHub for a branch, look at the PR inside VSCode, and then close the PR and have GitHub delete the remote branch.amiantos commentedon Jan 22, 2026
Might be easy to fake it...
I went into my git config and manually erased those GitHub pr lines and was able to delete the branch. So maybe I just write a script to edit my git configs to remove these keys for now. But to test I bet we could just add those keys with random data to any local branch and it should reproduce I bet.