Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,369,551
Community Members
 
Community Events
168
Community Groups

unable to resolve reference : reference broken. How to solve this?

it -c diff.mnemonicprefix=false -c core.quotepath=false --no-optional-locks fetch --prune origin
From https://bitbucket.org/ngeksyo/mac-haik-crm
* [new branch] Jaison/master_branch -> origin/Jaison/master_branch
error: cannot lock ref 'refs/remotes/origin/dale/campaign_template_builder': unable to resolve reference 'refs/remotes/origin/dale/campaign_template_builder': reference broken
! [new branch] dale/campaign_template_builder -> origin/dale/campaign_template_builder (unable to update local ref)

1 answer

0 votes
bgannin Atlassian Team Jul 02, 2019

Hi @Venalyn,

Your local working copy and the remote repository are different enough that Git is unable to resolve that. I recommend cloning the remote repository again to a new location, create a patch from the commits or differences, and then apply it to a new branch. Hope that helps.

Brian Ganninger
Principal Developer, Sourcetree

Hi @Venalyn

@bgannin's solution in large projects is a little: kill a fly with cannonball. You can remove the references to the failing branch in packed-refs, info/refs inside the .git folder

Regards,

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events