Xamarin – “Funny RefName” when publishing to BitBucket

I am sorry that this is a duplicate of other questions, however even though I know the “answer”, I do not know how to implement it.

I am using Xamarin and version control. I was able to set it up to work locally just fine. However, when I try to push my changes to the remote server, BitBucket.org, I get an error “Funny RefName”.

After extensively googling this, I know the answer is I need to set the Target Ref Name from “master” or “refs/heads/master” however I have no clue where I have to set this.

Under “Version Control” -> “Manage Branches” it lists my one branch of “master”. If I click edit and try to change it to “refs/heads/master”, it says it already exists. Under remote sources it has “origin”, however if i change that to “refs/heads/origin” it allows me to do so, but same error when pushing to server.

For reference this is a duplicate / extension of:
funny refname error when creating a new remote branch

It was also asked by someone on Xamarin’s forum with the same solution, but again does not explain how/where to set this:

I appreciate any help that could be offered on this

  • Resource.Designer.cs under git
  • Setting up Xamarin Studio Version Control with TFS + git
  • Connect to TFS Git from Xamarin Studio (non-hosted, locally installed TFS 2013)
  • Gitignore all obj directories except .m and .h files inside them
  • Git Branches In Xamarin Studio
  • One Solution collect form web for “Xamarin – “Funny RefName” when publishing to BitBucket”

    It is more of a workaround than a solution, but it might help some people, especially git beginners.

    I’m simply using git command line for commits and pushes. As far as you can commit from Xamarin, in my case it takes really long time. If this doesn’t happen for you, whenever you want to push, you can just write:

    git push -u origin master

    And for making commits outside IDE:

    git commit -am 'commit message'
    Git Baby is a git and github fan, let's start git clone.