I am trying to delete a remote branch but it is giving error : branch not found, I did.
git branch -r ... origin/master origin/dev origin/branch_to_delete
now I try to delete
git branch -d origin/branch_to_delete error: branch 'origin/branch_to_delete' not found
git fetch --all
and tried again, the same error. I tried with
-D but the same error.
but the branch is there, I can see it in github.com. What to do?
According to this post:
So the error you got just means you don't have a local copy of that branch, so you can ignore it. Then to delete the remote copy:
git push origin :branch_to_delete