What is the ‘fatal: refusing to merge unrelated histories’ error? The fatal: refusing to merge histories error is a fairly common Git error. It appears when a developer tries to merge two unrelated projects into a single branch. This error appears when the branch has its commit histories and tags incompatible with the pull request
Summary The error “refspec matches more than one” is shown while pushing a branch to Bitbucket.
This occurs because there is more than one Git ref that matches the ref name specified in the push command.
Example Suppose a repo has a branch and a tag with the same name, “dev”.
When an attempt is made to push the “dev” branch to the remote, the error “refspec matches more than one” will be shown and the push fails.