As the title says I am trying to create a new branch in git on the remote repository.
To do this I have previously been using the following command.
git push origin origin:refs/heads/rounding_issue
Which normally just works and I can then run
git branch -r
To confirm.
This morning however this is not working and I have received the following error messages.
error: src refspec origin does not match any.
error: failed to push some refs to '{user}@{location}:{repository}.git'
I have googled the message and checked various sites and the only explanation people have been coming up with (that I have found) is that maybe the master branch needs pushed first or there are some things you need to commit first, I have tried a host of different things but each time the error message is the same.
I can commit to the master branch fine.
Any help would be greatly appreciated.