Skip to content

Instantly share code, notes, and snippets.

@bgshacklett
Created July 20, 2015 20:36
  • 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 bgshacklett/a5e60a84bd4e8acc28fe to your computer and use it in GitHub Desktop.
Can't push new branch with forward slash in the name
C:\Program Files\WindowsPowerShell\Modules\GoDnsServerManagement [develop]> git checkout -b feature/test
Switched to a new branch 'feature/test'
C:\Program Files\WindowsPowerShell\Modules\GoDnsServerManagement [feature/test]> git push -u origin feature/test
fatal: feature/test cannot be resolved to branch.
fatal: The remote end hung up unexpectedly
C:\Program Files\WindowsPowerShell\Modules\GoDnsServerManagement [feature/test]> git push -u origin 'feature/test'
fatal: feature/test cannot be resolved to branch.
fatal: The remote end hung up unexpectedly
C:\Program Files\WindowsPowerShell\Modules\GoDnsServerManagement [feature/test]> git push -u origin feature/test:feature/test
error: unable to push to unqualified destination: feature/test
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 'git@dev-git.orlando.local:bshacklett/GoDnsServerManagement.git'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment