I am trying to make an alias to delete a remote branch but I can't seem to get it, here is my latest attempt that I really expected to work but no luck.

rmrb = !git push origin :$1

I also tried, rmrb = branch -r -d but this doesn't do the same thing as git push origin :<branch>.

Does anyone know if this is possible or have an existing alias to do this?

Edit
Report