Skip to content

Conversation

@chernjie
Copy link
Contributor

Getting error

error: src refspec origin does not match any.
error: failed to push some refs to '....git'

if you are trying to push the current branch head to remote, the command should be:

git push origin HEAD:refs/heads/$branch

re: comment via b74a9d7#L2R6

@zsitro
Copy link

zsitro commented Mar 6, 2014

+1, tested. No error with changes. Ty @chernjie

@hemanth
Copy link
Collaborator

hemanth commented Jul 9, 2014

👍

hemanth added a commit that referenced this pull request Jul 9, 2014
`git-create-branch`: use HEAD instead of origin.
@hemanth hemanth merged commit 128bc2d into tj:master Jul 9, 2014
tardypad pushed a commit to tardypad/git-extras that referenced this pull request Jul 13, 2016
`git-create-branch`: use HEAD instead of origin.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants