3

名前にダッシュが含まれるリモート ブランチを削除できません。

git push origin :paul-ms
error: unable to push to unqualified destination: paul-ms
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@github.com:blah/blah.git'

git push origin --delete 'paul-ms'
error: unable to push to unqualified destination: paul-ms
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@github.com:blah/blah.git'
4

1 に答える 1

6

使用する:git push origin :refs/heads/paul-ms

参照: Git - Refspec

于 2012-10-12T20:44:10.497 に答える