मैं एक दूरस्थ गिट शाखा को हटाने की कोशिश कर रहा हूं
git push origin :my_remote_branch
और हो रही है:
error: unable to push to unqualified destination: my_remote_branch
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@example.com:/myrepo'
ये मेरी वर्तमान शाखाएँ हैं
git branch -a
* develop
master
remotes/origin/HEAD -> origin/master
remotes/origin/develop
remotes/origin/my_remote_branch
git branch -r --merged
origin/HEAD -> origin/master
origin/develop
origin/master
मैं इस शाखा से कैसे छुटकारा पा सकता हूं, इस पर कोई विचार।
git fetchलेकिन मदद नहीं की। फ़ाइल को मैन्युअल रूप से हटाने की कोशिश करने से पहले अधिक सीधे आगे के समाधान की खोज करने की कोशिश करेंगे।
git fetch -pबासी ट्रैकिंग शाखाओं से छुटकारा पाने के लिए करना चाहिए ।
git fetchयह देखने की कोशिश की कि क्या यह गैर-मौजूदा रिमोट नाम तय करता है? क्या आपने अपने में जाने.git\refs\remotes\originऔरmy_remote_branchफ़ाइल को हटाने की कोशिश की , यह देखने के लिए कि क्या यह पर्याप्त है?