私は2つのリモートブランチ持っている:私はこのようなpending-issues-in-project
削除しようとしましたGitHubのリモートブランチを強制的に削除する方法は?
- pending-issues-in-project
- new-issues-in-project
を:
git push origin :pending-issues-in-project
を、私はエラーだ:だから私は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 '[email protected]:forkedRepo/RepoName.git'
をしかし、私が実行するとき
git branch -a
それはリストにpending-issues-in-project
枝を示しています。
new-issues-in-project
と同じ(削除しようとしました)試みたときに機能しました。
私はすでにローカルサーバーから両方のブランチをgit branch -D branchName
を使って削除しました。
ブランチがリポジトリに存在しないためにエラーが発生した場合は、 なぜリモートブランチリストに入っていますか?
と
リモートブランチを強制的に削除する方法はありますか?
お時間をいただきありがとうございます。
git branch -rとは何ですか? –
私は削除しようとしている起点/保留中のissue-in-projectも持っているブランチリストを与えています。 –