私は2つのリモートブランチを持っています:
- pending-issues-in-project
- new-issues-in-project
このように削除しようとしましたpending-issues-in-project
:
git push origin :pending-issues-in-project
、しかし、エラーが発生しました:
error: unable to push to unqualified destination: pending-issues-in-project
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:forkedRepo/RepoName.git'
ブランチを削除したのではないかと思いましpending-issues-in-project
たが、実行するとリストにブランチが
git branch -a
表示pending-issues-in-project
されます。
に対して同じことを試みた(削除しようとした)ときnew-issues-in-project
、それはうまくいきました。
を使用して、ローカル サーバーから両方のブランチを既に削除しgit branch -D branchName
ました。
ブランチがリポジトリに存在しないためにエラーが発生している場合、なぜリモートブランチリストに来るのでしょうか?
リモートブランチを強制的に削除する方法はあり
ますか?
御時間ありがとうございます。