Git - remove remote branch with a space in the branch name -
i'm not sure how happened, have branch on our remote repository has space in it's name:
remotes/origin/dev 3
i'm trying remove branch using following command, wont work, think because of spaces:
git push origin :dev 3
i've tried different variants, such as:
git push origin :dev\ 3 git push origin :dev3 git push origin :'dev 3' git push origin ':dev 3'
none of these work, following error:
error: unable delete 'release': remote ref not exist error: src refspec 3 not match any.
any ideas on how remove remote branch please?
i figured out how it!
so using netbeans , gitk view branches , through tools, branch name "dev 3". tried listing using 'git branch -a' , turns out, branch name "dev_3"!
so did git push origin :dev_3 , got rid of it. no idea why other tools not showing underscore.
thanks!
Comments
Post a Comment