I've ran against a problem whith git push today. I tried to push a branch to the remote repository, but it gave an error.
After some search, i've asked it on the git irc channel, and someone said that the syntax of the push was
git push <remote> <localref>:<remoteref>
Up until now, i just used git push which worked fine. But in this case, it failed.
I tried to push some branch other than the master to the remote server, and i got the following error:
error: src refspec xi-temp-dennis does not match any.
error: failed to push some refs to 'remote.server'
By specifying the localref, it suddenly worken.
My question is, why did I need to specify the localref this time?