Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

error when trying to push to branch on bitbucket - refspec matches more than one

jkala
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 15, 2023

Hi all,

I wanted to checkout a remote branch (created by someone else) into my local repository.

I made a silly mistake, and used git checkout -b, with the same name as the remote branch, which means I have created a local branch that already exists remotely....

Of course, with I try to push my changes to this branch, it is clashing.

Here is output of git branch -v -a:

master d93be71 minor edits to check scratch usage script
* remotes/origin/feature/workflow_scripts_cmip6_filename_fixes 8a913a1 fixing all job names in WRF part
remotes/origin/feature/workflow_scripts_cmip6_filename_fixes c33ace9 branch testing
remotes/origin/master d93be71 minor edits to check scratch usage script

You will see that there are two branches with exactly the same name.....What is the best way to fix this? any thoughts?

Kind regards

jatin

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events