Git error: “git dst refspec matches more than one”

“git dst refspec matches more than one”

You may get this error when pushing a commit to your repo.  The most likely suspect is that someone named a tag the exact name of the branch.  You can rename the tag or delete it and retry pushing the commit.

If you have a branch you typically keep open because it represents a very strict set of changes, like “Code_Cleanup” but you still want to tag the branches at logical intervals, add more details to the end of the tag.  I’ve seen some serialize the number or just append the date but either way avoid creating a tag name the same name as the branch unless you are sure the branch is going to be retired.

This entry was posted in   Git.
Bookmark the   permalink.

Aaron Belchamber has written 247 articles

One thought on “Git error: “git dst refspec matches more than one”

Leave a Reply

Your email address will not be published. Required fields are marked *