-1

How delete git remote branch when :

git push -d master
fatal: --delete doesn't make sense without any refs

cannot work ?

  • 1
    Does this answer your question? [How do I delete a Git branch locally and remotely?](https://stackoverflow.com/questions/2003505/how-do-i-delete-a-git-branch-locally-and-remotely) – Eng_Farghly Sep 30 '21 at 04:38

1 Answers1

1

very easy :

git push origin --delete <branch name>
Dmitry
  • 353
  • 2
  • 8