Skip to content

Instantly share code, notes, and snippets.

Created May 5, 2011 07:22
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save anonymous/956665 to your computer and use it in GitHub Desktop.
git 1.7.5 push new branch fails
$ git push origin HEAD:newbranch
error: unable to push to unqualified destination: newbranch
The destination refspec neither matches an existing ref on the remote nor
begins with refs/, and we are unable to guess a prefix based on the source ref.
error: failed to push some refs to 'ssh://example.com/srv/git/project.git'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment