Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8482955
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T19:57:14+00:00 2026-06-10T19:57:14+00:00

The issue This sounds like a GitExtensions bug, to which I couldn’t find specific

  • 0

The issue

This sounds like a GitExtensions bug, to which I couldn’t find specific info. I believe the issue arises when you have a bare repository with more than 1 branch. If you then push, you’ll get a warning that if you choose to ignore you’ll find the mess up branches. Or depending on how you push it, not even the warning comes up and it’s doom everywhere!

Let’s say we have 2 local branches called master and another. And the default origin set for pushing. After a regular push we’d also find origin/master and origin/another, that’s all.

But after the doomed push, we’ll find duplicated origin/master and origin/another plus origin/refs/heads/master and that’s also duplicated. For every extra branch. And it’s not like we’re pushing all branches or something, nor are we using Multiple Branches feature.

In fact, after this happening, we can’t even simply push without an error! (yes, using windows of course)

Pushing to \\\server\git\repo
error: dst refspec refs/heads/another matches more than one.
error: failed to push some refs to '\\\server\git\repo'

The problem becomes way evident when listing branches with git branch -r.

To fix it

We need to do something like this:

  1. Manually remove the refs/heads folder in origin. Some times it works just using git push origin :<branchName>, others we need to go more robust and directly into the folder. This is the hard step and main problem happens when those don’t work…
  2. git fetch -p, for bringing origin changes to local.
  3. Eventually going through all clients and using git remote update. If needed, removing the same branches, one by one or by any means, like robustly and directly into the folder again. There’s yet another problem in this steps, sometimes, which I can’t diagnose yet.

The frequency

To us, this is a stated fact. Even though I haven’t done many experiments to see what exactly causes it, it does happen in any of 5 machines using this repo, all configured the same way except for the bare.

And every single time it happens I have to run and find out on how to fix it. This time I decided to document it, since I could never find anything on the web specific enough.

Why

The question here is: why this happens, and how to prevent it? Is it even GitExtensions fault only? That sure happens, in our side, only with this specific scenario, in GitExtensions.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T19:57:16+00:00Added an answer on June 10, 2026 at 7:57 pm

    While dealing with another simpler rep, accidentally (also coincidentally and finally) found out the culprit!

    Under .git/config we had these 2 lines for [remote "origin"]:

    push = refs/heads/*:refs/heads/*
    push = refs/tags/*:refs/tags/*
    

    Simply adding this one to the top, solved all issues:

    push = *:* # hack for git extensions
    

    The reason for the 2 lines at first, was “pushing everything to the server”, including tags and heads.

    I believe, somehow, GitExtensions read those and change its own default behavior in a wrong manner (why would it get just the right side of the first setting?) and thus effectively doing this on every push:

    > git push origin *:refs/heads/*
    

    And boy, do I tell you, cleaning up that mess isn’t any simple task!

    Solved.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This sounds like a issue a beginner like me would only have...this is my
This sounds like a simple enough question, but can't find the answer for the
I read past questions but I couldn't solve my issue :( This is my
Note: This issue appears to be limited to SQL Server 2005 SP2 I have
I have a very complicated issue, but if I can do this, then I
I’m having an issue using SqlBulkCopy when nullable columns are involved. It sounds like
This sounds like a weird title and probably not stated too well. But here's
Is it possible to force case-sensitive for a query? Mine sounds like this: SELECT
Jquery Each Json Values Issue This question is similar to above, but not the
How can I ignore the attribute error I get when I issue this command?

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.