github - git delete remote branch not working: branch not found -


i trying delete remote branch in git, did:

git branch -r ... origin/master origin/dev origin/branch_to_delete 

now try delete origin/branch_to_delete:

git branch -d origin/branch_to_delete error: branch 'origin/branch_to_delete' not found  

i did:

git fetch --all 

and tried again, same error. tried -d same error.

but branch there, can see in github.com. do?

according this post:

deleting pretty simple task (despite feeling bit kludgy):

git push origin :newfeature

that delete newfeature branch on origin remote, you’ll still need delete branch locally git branch -d newfeature.

so error got means don't have local copy of branch, can ignore it. delete remote copy:

git push origin :branch_to_delete 

Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

Rendering JButton to get the JCheckBox behavior in a JTable by using images does not update my table -