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”.
- Gitignore all obj directories except .m and .h files inside them
- Setting up Xamarin Studio Version Control with TFS + git
- Resource.Designer.cs under git
- Git Branches In Xamarin Studio
- Connect to TFS Git from Xamarin Studio (non-hosted, locally installed TFS 2013)
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
I appreciate any help that could be offered on this
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'